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:
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:
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
Hello @Simon Huprich
Welcome to the Atlassian community.
In the log output:
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.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.