Want to transition tickets from Archive to To Do if start date is 7 days from today?

Abhay Kulkarni October 26, 2023

Automation Logic.PNGRule Logic.PNG

 

 

Here is what I have so far. Also tried - {{now.diff(issue.startdate).days}}<=7. Please advise. 

 

Thank you. 

1 answer

1 accepted

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 26, 2023

Hi @Abhay Kulkarni 

Have you tried updating your JQL, to add the status condition, and remove the condition from the rule?  For example:

project = yourProjectName AND "Start date[Date]" <= startOfDay(7d) AND status = "Archive"

Then the rule will only run when there are issues to process.

Kind regards,
Bill

Abhay Kulkarni October 27, 2023

Hello Bill, thank you for your response. That did not work either. Any other ideas? 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

When you note "that did not work either", what did you observe happening?

And please post your current, complete rule so we can compare your changes to what I suggested.

Abhay Kulkarni October 27, 2023

Followed your earlier suggestions on the query and removed the condition in the rule : 

JQL Query - project = "Test" AND "Start date[Date]" <= startOfDay(7d) AND status = Archive

 

Ran the rule but the issue with a start date of 10/30 did not transition over to TO DO. There are no errors in the log. 

 

JIRA 3.PNG

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

Please post an image of the audit log details showing where you ran the rule.

And, if you run that JQL stand-alone, in View All Issues search, does it return anything?

Abhay Kulkarni October 27, 2023

 

Yes, I get the tickets with a start date that is more than 7 days out. when I run the query by itself.

 

In the Audit logs, dont have a Failure or a Success Message, just the config change. I ran the rule within the Test Board -> Automations. 

jira 4.PNG

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

I do not see the rule run shown.

Did you select "Run rule" from the editor to force it to run now, rather than waiting for the schedule?

Abhay Kulkarni October 27, 2023

Yes sir. I did. 

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

Then why does it not appear in the audit log for this rule?

Abhay Kulkarni October 27, 2023

I had the rule disabled! My bad. Thank you for your help, Bill :) 

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2023

I wish Atlassian would disable that button when rules are disabled  :^)

Abhay Kulkarni October 27, 2023

Indeed! Or at least a pop up letting the user know to enable the rule before testing it out.  

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events