Hi Folks,
Hope somebody has a good trick for doing this. I have lots of Initiatives and lots of Epics, with "ParentOf / ChildOf" relationships between them (can be multiple in both directions)
So what I want to do is in JIRA automation to loop through the Epics linked to an Initiative, and set the Priority on the Initiative to be the Highest priority in all the Epics.
I would like trigger this logic whenever a Epic priority is changed, or when an ParentOf assocation is added/removed, but I can work that part out. What I havent managed is how to do that looping through.
Ive managed to loop through the linked Epics from the Initiative, but I dont see to be able to set a field in the Initiative (the triggerissue)?
Hi @Chris Smith -- Welcome to the Atlassian Community!
You may not need to loop through these; instead only find an example issue with the "highest" priority.
For example, try writing some JQL which will find all the relevant issues you want, and then add an ORDER BY Priority ASC
Now the last one should have your target priority, so your rule could be something like this:
Kind regards,
Bill
Thanks Bill. It never crossed my mind to use the order by in the automation rule!
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.