Hello all,
I am looking for a post-function/automation rule that allows me to change the Epic Link of all linked issues when the "parents" Epic Link is changed.
To give some context: we work with Epics, that are split into Features. Here is where the Feature acquires its Epic Link automatically. Features are split into Stories, but the link is made manually, so we had to implement some Automation rules that copy the Epic Link value from the Feature to the Story to have traceability when this connection is made.
Our problem is that when the Epic Link is changed on the Feature (maybe it has been connected to the wrong Epic or reprioritize into other Epic), we lose the traceability with the Stories linked to the Feature, because they don´t inherit the Epic Link changed. I am trying to implement an Automation Rule/ Post function that changes the Epic Link on the Linked Stories when the Epic Link on the Feature changes.
My first idea has been to make an action (transition to itself) in the Features workflow with a screen that only has the field Epic Link. After this action is made and the Epic Link changed, I need some kind of Scriptrunner script postfunction that identify the linked stories and modifies their Epic Link accordingly.
Does anybody have any idea on how to implement this? Thanks in advance!