Forums

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

Link existing work items according to a specific workflow

Simon Huprich
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!
December 12, 2025

Hi, 

I created the following situation: 

Automation rule number 1: Create a number of work items according to a specific amount of process steps.

=> Everything works fine here


Now I want to link every created work item according to a specific workflow. Like 1,2,3 =>4=>5=>6=>7. But sometimes it's just 1,2 =>4=>5=>6 or another time just 3=>4=>5=>6. The idea ist the process steps are not always the same and so the tickets are not the same any time. 

But here is my problem: 

Automation rules number 2-n: 


Screenshot 2025-12-12 at 18.57.47.png

As you can see. The rules finds the correct work item. ("1 work item found"). I checked and it is the correct one. 

But when I run the rules. This happens: 

Screenshot 2025-12-12 at 18.59.08.png

Because in this case there were 4 process steps, also 4 of the "linking automations" started. But number 3 (first screenshot) that previously found the work item while testing, does not find anything (see audit log => step 3). 

So, why is this happening? 
Any ideas?
What do I miss?

Looking forward to your answers. 
Thanks!

Regards

 

1 answer

0 votes
Trudy Claspill
Community Champion
December 12, 2025

Hello @Simon Huprich 

Welcome to the Atlassian community.

In the log output:

Screenshot 2025-12-12 at 10.56.59 AM.png

Is one of these issues the one that should be found by the Branch? How is the issue that you want to link to getting created?

The fact that in your JQL validation you found an issue does not necessarily mean that during execution of the rule an issue will be found. Your JQL includes criteria that requires the issue being sought to have been created within the last 5 minutes. That may not occur when the rule is actually executing.

Simon Huprich
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!
December 12, 2025

Hi,
I explained in the description, that there are two rules. The first works fine. The second not. The first rule (creating issue rule) creates all the issues. So it is definitely there. Because after using the second rule (linking issue rule) and validating the JQL the issue can be found. So the one work item that was found was the one work item that was created before. 
Any thoughts? 

Trudy Claspill
Community Champion
December 12, 2025

So the issue that is being sought in the second rule was created by the first rule, correct?

Again, looking at the log from the second rule, the second rule was triggered 4 times. The second triggering of that rule, at 18:55:43, is the one that tried to execute the branch.

If it had correctly found the related issue, which of the issues shown in the log would it have found; MK-235?

If so, perhaps there is a timing issue and the indexing has not completed for the first issue, resulting in it not being found when the JQL executes during the second run of the rule.

Perhaps try adding a Delay action in the second rule immediately after the trigger and before the Branch.

https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Delay

Suggest an answer

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

Atlassian Community Events