Hi,
Was wondering if anyone had some ideas on this.
I have a workflow I'm trying to automate, but hitting some problems with getting it to consistently work.
I have tried two different ways to do it
First Attempt:
This increments the "Count of Related Tickets" on the linked issues, not the trigger issue (the newly created issue). I need to update the Trigger issue, not the linked issue.
Second Attempt:
This has 2 rules that work off each other.
First rule, links the related issues:
And the second rule does the increment based off the trigger "When issue linked"
But this doesn't work consistently either. It works fine for 1 or 2 linked issues, but if there are 5+ it will not update the number correctly. For example 11 linked cases, then the value should be 11, but the field only gets updated to anywhere between 3 and 8. I can see in the audit log that the Edit Issue Field is all happening more or less at the same time, so it is not always pulling the most recent value. Even adding in the re-fetch issue data doesn't help. I believe the problem is the asyncronous nature of jira updates. If there was some way to make them go FIFO that would be amazing.
Any ideas on what I can do to make this work, or maybe an easier way to do it?
Thanks!
Hi @EdgeSync
For your second automation rule where you have the trigger as 'Issue linked', was the option
Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule.
checked? This will show up if you click on 'Rule details' and in the right side panel.
Hope this helps.
Thanks,
Vamsi
One thing you could consider is rather than trying to increment the field with each link event, in your first rule add Actions after the branch to retrieve the linked issues (use a Lookup Issues action to retrieve them) and set the field to the number of issues retrieved.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.