We have a two level Issue Type hierarchy for our use case.
Parent --> Child --> Grandchild
(these are set up using Portfolio for JIRA so are separate Issue Types and not Sub-Tasks)
e.g.
A (Parent) --> B, C (Child)
B (Child) --> D, E (Grandchild)
C (Child) --> F, G (Grandchild)
We want to cascade status updates from the Grandchild level all the way up to Parent level. i.e. If one or more grandchild moves from NEW to IN-PROGRESS, the parent automatically moves from NEW to IN-PROGRESS - applicable across all hierarchies
Considering this example, details are as follows:
a) When D or E moves from NEW to IN-PROGRESS, its Parent B will move from NEW to IN-PROGRESS and furthermore its own parent A will move from NEW to IN-PROGRESS
b) When D & E both move from IN-PROGRESS to COMPLETE, its Parent B will move from IN-PROGRESS to COMPLETE
c) When all D, E, F & G are COMPLETE, and their Parents B & C will be COMPLETE and furthermore, the Grandparent A will move from IN-PROGRESS to COMPLETE
What is the best way of implementing this functionality?
We are considering Automation for JIRA plugin and also running a custom script using Scriptrunner
Thanks in advance for all your responses!