Auto-transition on issue when a date occured

Nico n May 10, 2018

Hello,

I'm working with a brand new workflow in Jira Service Desk. When a particular status is reached, I need to set a date counter (i.e. 30 days) automatically. Then, when counter reaches 0 days, I need to make a transition to another status automatically. 

Is there any way to do it ? ...better without paid plugins :)

 

2 answers

1 accepted

2 votes
Answer accepted
John McKiernan
Atlassian Partner
May 10, 2018

Hi Nico,

Yep this is definitely possible through Automation for Jira (and unpaid too ;) 

First you need to install Automation for Jira Lite (server or cloud version)

You need to set up two rules. 

Rule 1 sets the date on the transition (Sets the counter running)

When = Issue Transitioned 

If: Issue matches JQL, status = "In Progress"

Then: Edit issue fields - due date = {{#now}}func=plusDays(30){{/}}

Screenshot 2018-05-11_14-46-38.png

 

Rule 2 - Transitions when due 

 

When: Scheduled 

*fixed rate of every 1 Day, run a JQL search with 'duedate <= 0d and duedate > -1d'

Then: Transition to Done 

Screenshot 2018-05-11_14-54-32.png

 

 

Hope that helps. Feel free to reach out if you have any other questions! 

Cheers,

John 

Nico n May 11, 2018

wow, you have been very clear! :)

I don't understand why the AND condition is necessary but i'm going to try it immediately

Thanks!!

Nico n May 14, 2018

hello John,

finally I tested the rules. Rule 1 is ok. Rule 2 is ok too, but I tested without the AND condition, so the after the first time the rule was runned successfully, then it is gone into error. 

I think it depends by the AND condition, so i'm going to tune it.

thanks again

David Fox-Powell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2019

Wow! This is great and exactly what I was looking for

Like John McKiernan likes this
0 votes
Caoimhin Caldwell
Contributor
December 14, 2022

Hi there, 

 

I am looking for something similar to the above but haven't came up with a solution. I need all issues in a status to transition on a certain day (i.e every Wednesday evening) and for this to occur every week. Is there anything like this that could be achieved with Automation plugin? Any help much appreicated

 

Thanks

Caoimhin Caldwell
Contributor
December 14, 2022

Sorry ignore the previous question, for anyone looking to an answer to that it can be achieved using a CRON expression in the Automation for Jira plugin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events