I am trying to automate some of the linking I do with tickets using the tool, Automation for Jira. The goal for my automation rule is for a user to edit the Epic Link field on a ticket and then it will automatically add a parent/child link between the Epic and the Story or Task.
Here is the flow of my current build but I am having issue with choosing the right trigger. I would like it to trigger the rule when the issue field "Epic Link" has been edited. I have found a workaround but it seems really inefficient and has the possibility to not run in certain situations.
Hi Zachary,
Thanks for raising this. This is a known Jira bug, unfortunately so the workaround is necessary.
You can see the details here:
https://codebarrel.atlassian.net/browse/AUT-334 (you may need to view incognito)
Once we can get to this, we'll pop you an email to let you know that it has been fixed!
Cheers,
John
Thank you John for the reply! I have also added myself as a watcher to the ticket: JSWSERVER-12299.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sounds good Zachary! Enjoy your day :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John McKiernan1I don't think the issue link you provided is related to our issue. THe issue link Zachary provided https://jira.atlassian.com/browse/JSWSERVER-12299 is the issue we need resolved. It is coming up on 3 years with no resolution. What's the ETA on this? Please increase the priority of this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Alexander,
the issue I shared with Zachary is how we, at Automation for Jira, are tracking the Jira bug (https://jira.atlassian.com/browse/JSWSERVER-12299). We do this so we can inform our impacted customers once Atlassian fixes the Jira bug.
Unfortunately, as a marketplace add-on, we don't have any sway over how Atlassian prioritize their issues - as much as we'd like to :)
Cheers,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The https://codebarrel.atlassian.net/browse/AUT-334 issue is marked as "done", however the functionality is still not there due to the bug.
In the comments of the server bug I noticed a comment:
As kind of a workaround, it does fire IssueLinkCreatedEvent and IssueLinkDeletedEvent with hidden link type named "Epic-Story Link".
I wonder if that has been tried yet. The comment makes sense to me as it is a link that's being created. This could then easily be solved in the existing "Issue Linked" trigger by adding this link type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Maarten,
thanks for your message. You are quite right, it is marked as 'done' whereas it should probably be marked as 'can't do'
It is totally reliant on Atlassian fixing that bug (open since 2015 and in the long term backlog) and we have to try to keep our own backlog clean.
With the workaround you mention, this might work but to be honest, it isn't something we could swear to as it changes so much. Apologies about this. When it comes to issues within our control, we can be more definite but I don't like to recommend workarounds that rely on something other than Automation for Jira.
I hope you understand.
Cheers,
John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For anyone coming here looking for a way to do updates to Epics when an Epic Link is changed on a ticket, you can start with this guidance: https://codebarrel.atlassian.net/browse/AUT-1264?focusedCommentId=107261
Basically, you have to use Issue Updated (or Multiple Issue Events) as the trigger, and then look at the special {{changelog}} smart value to see if it was an Epic Link change.
Some how-to: https://community.atlassian.com/t5/Jira-Software-questions/Jira-Automation-How-to-identify-what-Epic-a-Story-was-linked-to/qaq-p/1924599
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Zachary Martin ,
Instead of using a JQL, I believe you can also use the below technique as a workaround which is efficient than JQL
This checks if the "Epic Link" does not equal "EMPTY". If its true, then you can add a "Re-fetch" and then branch into the "Standard Issue Types" parent or basically do the other operations like Editing the fields by copy the values from the new "Epic" to its "Story" level child to keep them in sync and so on.
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As of Jira 8.5.0, Atlassian has fixed https://jira.atlassian.com/browse/JSWSERVER-12299.
I've been able to successfully set up a rule that monitors when the Epic Link changes, however there is no smart value that can be used for the issues link.
I'm trying to accomplish a couple things:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you have any luck with this? I'm trying to update an Epic that a Story has been 'removed from', when it has been removed.
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.