Forums

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

how to create a script with "start date" triggers a issue to move statuses when it passes 9 months

Matthew Nico November 25, 2022

I'm trying to figure out how to automate JIRA automation to move a issue from one status to another status when the custom created field is either past 9 months or when it is older than 9 months. 

I'm currently trying to use the automation built in configuration of a "Scheduled" script under "All Components" in the project's settings>automation>scheduled

"Start Date" >= "-270d" for the filter under scheduled

How do I write or perform the "IF" statement/control to move a issue that meets the requirement above to another status?

 

2 answers

2 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
November 26, 2022

@Matthew Nico 

Can you provide an example with dates for each of your stated conditions?

is either past 9 months or when it is older than 9 months. 

To me those sound like the same thing.

Your operator is incorrect if you want to find issues that are older than 270 days. It needs to be

"Start date" <= -270d

Matthew Nico November 28, 2022

That's exactly what I needed along with the other comment. Thank you!

1 vote
Answer accepted
__ Jimi Wikman
Community Champion
November 25, 2022

You can just add an action after that.

The schedule will already do the filter, so the action will be done on everything in that filter.

Matthew Nico November 28, 2022

Thank you! I just needed to dive deeper into the GUI.

Like __ Jimi Wikman likes this
__ Jimi Wikman
Community Champion
November 28, 2022

Happy to help :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events