Triger a scheduled ticket creation after the initial ticket has been closed

Arturs Kalnins July 29, 2024

we have a very rigid process in which we have to close tickets one after another in specific order. 

The last ticket has a label called "scorecard_launch"  and i would like to create an automation that triggers 1 month after ticket with label " scorecard_launch"  is transitioned to done, a new ticket is created (linked to the trigger issue)

I do see there is a " scheduled task"  automation but i'm unable to figure out on how to make the trigger to schedule the new issue creation

1 answer

1 accepted

1 vote
Answer accepted
Hans Polder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 29, 2024

@Arturs Kalnins ,

Can you check this page from our awesome @John Funk : https://community.atlassian.com/t5/Jira-articles/Creating-a-Flexible-Recurring-Task-Issue/ba-p/2040862

It's not 100% what you're looking for but I bet parts of it would be reusable to make it work for you.

If it doesn't work, please report back with any progress/issues and we can check and see if we can help you out!

Arturs Kalnins July 30, 2024

Hi @Hans Polder this does not actually work as from my understanding it instantly creates the issue after transition and just adjusts the due date. 

What i'm looking for is as follows:

If issue with label "Scorecard_launch" transitioned to done 
1 month after the transition -> create a new issue 

Hans Polder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 30, 2024

I think this should do it:

status CHANGED TO Done ON -1m and labels = Scorecard_launch

Screenshot 2024-07-30 102743.png

 

You can play around with the JQL a bit more to make it more resilient, but I believe this should catch exactly what you're looking for. You can do a lot of things with the 'CHANGED' operator: https://support.atlassian.com/jira-software-cloud/docs/jql-operators/

Arturs Kalnins July 30, 2024

This sounds like it might work, but just to clarify. doesn't it mean that the scheduled task will trigger on the same issue every day? Meaning it will create a ticket every day for the tickets that are 1m old or older?

Hans Polder
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 30, 2024

No, it will not:

The JQL filters specifically ONLY on issue that were changed to status 'Done' EXACTLY -1m (1 month ago). And since the rule only runs once per day, any issue will only be treated by this automation one time. If the JQL would have been "status CHANGED TO Done BEFORE -1m", then your statement would indeed be valid :)

By the way, if the rule doesn't work as expected, you could try disabling that checkbox at the end of the screenshot.

Arturs Kalnins July 30, 2024

appreciate the help @Hans Polder  Thanks for going above and beyond to solve my issue 

Like Hans Polder likes this

Suggest an answer

Log in or Sign up to answer