Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Attempting to set due dates when a sprint begins; rule can't be published

Benjamin Rosenek
Contributor
May 4, 2020

Hey guys,

I'm attempting to write an automation rule that, whenever a sprint begins, sets the due date for any open tickets within the project that don't have one. The edit trigger needs to be sprint start because our standard for when a ticket is due is "start of next sprint + X days", where X is determined by the priority level of the ticket.

Here's what I've configured to date:

jira automation.png

Due is as follows: {{now.plusDays(14)}}

This repeats as ELSE conditions with the priority changing (high, then medium, etc.) and the # of days in the smart rule changing accordingly.

There's a problem, though. When I try to publish this rule, I get the following error:

jira automation 2.png

I did some reading on here and found a problem with this error where someone explained that the sprint created trigger doesn't pass on an issue context identifying a set of issues for the other rules to run on. Their use case was completely different, though, and they solved their problem by creating a task, then running subsequent rules on the task that was just created using a branch rule.

That doesn't work here since I'm setting due dates on existing tickets.

Any ideas?

 

1 answer

1 accepted

0 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 5, 2020

Hi @Benjamin Rosenek  - Welcome to the Atlassian Community!

Try putting in a Branch rule / related issues component after the initial Sprint Created component. Use the value of Issues in the Sprint when you add the Branch rule component. 

Then give it a try.   

Benjamin Rosenek
Contributor
May 5, 2020

Thanks! I'm trying to hit every open ticket in the project, not just the ones in this sprint, so I gave this a shot:

jira automation 3.png

 

I'm not sure if this will execute successfully but we'll see!

Benjamin Rosenek
Contributor
May 12, 2020

My rule above worked - thanks for the help!

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 12, 2020

Great! Glad it worked!

Suggest an answer

Log in or Sign up to answer