Automation to create issue after 30 days when issue is resolved.

Jenna Clegg
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!
October 10, 2024

Hi everyone, 

I need help formulating an automation on JWM. I want to create an automation that creates a linked issue 30 days after the trigger issue has been transitioned to status "X" and a specific field selection is present. 

Thank you!

1 answer

2 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 10, 2024

Hi Jenna  Welcome to the Atlassian Community!

You will create a Scheduled trigger that runs daily at the timing of your choosing. 

Then add a JQL to the Schedule for: 

project = ABC and status = "In Progress" and status changed to "In Progress" On startOfDay(-30) and "Specific Field" is not empty

Change out the project and the Specific Field names. 

Then add an action for Create issue. Put in all of the fields and information you want and choose the Linked Issues field. For that field, choose the link type and then use Trigger Issue for the other value. 

Jenna Clegg
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!
October 22, 2024

Hi John! 

Thank you for your help with this. We created a rule using your scheduled trigger but did have to make a few minor changes so that it worked. The rule we input is as follows:

project = UR and status="approved" and status changed to "approved" On startOfDay(-30) AND "sca status[dropdown]" = "Pending Negotiations "

We've let it run for the last couple of days but nothing has worked. I ran an advanced search and found that there were issues that this should have worked on. The advance search I ran was: 

project = UR

AND type IN (Concurrent, Pre-Cert)

AND status = Approved

AND "sca status[dropdown]" = "Pending Negotiations "

AND statuscategorychangeddate >= "2024-09-16"

AND statuscategorychangeddate <= "2024-09-20"

ORDER BY created DESC

Do you have any insight as to where we can adjust to ensure the trigger works? 

Thank you again for your help!

Like John Funk 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 22, 2024

Hi @Jenna Clegg 

In your rule's scheduled trigger, below the JQL, is this option selected:

Only include issues that have changed since the last time this rule executed

If so, is that what you want?  If not, disable the option and re-test by trying to run your rule manually under the ... menu with "Run Rule".

Kind regards,
Bill

Like John Funk likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 22, 2024

What @Bill Sheboy  said  :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events