Forums

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

Creating a rule to automatically move issue through 30/60/90 day transitions, getting error

Quinn Campbell December 26, 2023

You'll have to excuse my ignorance, I'm still muddling my way through Jira stuff and I'm not a programmer. 

 

As you'll see on the image I am creating an automation that should automatically transition an issue from 1 status to another after a certain duration of time. I have that occurring for 3 different  status and durations. The trigger runs daily to see if any of the fields match was a variable (start date) more then 30/60/90 days and move to the appropriate status. To me everything seems logical but I am getting an error as listed below. 

Error
The rule has been configured with components that require issues to be provided by the trigger. You need to use the option to run JQL to provide issues. The following components require issues: Issue condition, Transition issue

So I turn on the "Run a JQL search and execute actions for each issue in the query." check box but now it wants me to have a JQL search. What should I be searching for? I put in "Start date" != {{now}} but I'm sure thats wrong....2023-12-26 17_09_18-New Employee Onboarding - Details - Jira.png2023-12-26 17_09_26-New Employee Onboarding - Details - Jira.png

 

2 answers

1 vote
Odd_lynice
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 26, 2023

Hi Quinn,

The error is asking you to include a JQL rule - think of it as "Where will the automation rule be applied".

You can create a JQL query to include all projects - if the intention of this rule is supposed to be run on all Jira projects or if this automation rule is only for select projects you can specify it also in the JQL query you are going to create.

 

Also, I would like to ask why did you select in your "else rule" status = 30, 60 or 90 days? do you think using "start date" as the basis of the rule would be better?

 

Meaning instead of the rule pulling data from status - instead, it will pull data using the start date field and it will transition the issue status if it meets the criteria set.

 

Screenshot 2023-12-27 at 10.20.48 AM.png

This suggestion means that you may need to add the start date field into your project Create Custom field this also means that moving forward all issues created or even issues that have already been created you would need to edit and include and pick a Start Date so that your automation rule can include those issue moving forward.

 

Theodore 

Quinn Campbell December 27, 2023

Gotcha on the JQL, so if I put in project = "Project Name" it will only apply to said project. 

 

The if/else if including both the status and the duration after start date was just to ensure only the right thing moved to the right place. Start date is already a required data set in the issue creation.

 

Are you suggesting that I just nix the status match and just do the date certain amount of time after?

Odd_lynice
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2023

Quinn,

 

This is an option - but again this means that you or users should always put in value in the "start date" field so that the automation can it's own thing.

 

Theodore

0 votes
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.
December 27, 2023

Hi @Quinn Campbell 

Adding on to the other answer suggested, I have a question:

What problem are you trying to solve by automatically transitioning issues based on time?  That is, "why do this?"  Understanding that will help the community provide better suggestions.  Thanks!

Kind regards,
Bill

Quinn Campbell December 27, 2023

The time trigger is so that someone doesnt need to count the days to or remember to do the task in x number of days, rather in x number of days they are triggered with a set of to dos. 

Suggest an answer

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

Atlassian Community Events