Hi,
We have created a field in our Initiatives issue types called "Product Phase" that denotes the different phases in our product development lifecycle (PDLC).
As a part of the PDLC, we are auto-creating child Epics that represent checkpoints (CP) between phases and asking teams to close these CP in Jira. When a user closes the CP ticket, we query based on the Summary for CP# - and then autoupdate the product phase. There are 6 CP Epics in total for each Initiative with the summary title being:
- CP1 - <parent project key>
- CP2 - <parent project key>
- CP3 - <parent project key>
- CP3.5 - <parent project key>
- CP4 - <parent project key>
- CP5 - <parent project key>
We recently had folks update their product phase but we want to auto-close the child CP tickets through our API or other manner possible.
- If an Initiative has the Product Phase = “Full Lauch“ OR “Rollback” , all 6 CPs should be Closed with Resolution = Done.
- If an Initiative has the Product Phase = “XP Rollout” , the first 5 CPs (CP1, CP2, CP3, CP3.5, CP4) should be Closed with Resolution = Done.
- If an Initiative has the Product Phase = “Admin Testing” , the first 4 CPs (CP1, CP2, CP3, CP3.5) should be Closed with Resolution = Done.
- If an Initiative has the Product Phase = “Build and QA” , the first 3 CPs (CP1, CP2, CP3) should be Closed with Resolution = Done.
- If an Initiative has the Product Phase = “Solution Scoping” , the first 2 CPs (CP1, CP2) should be Closed with Resolution = Done.
- If an Initiative has the Product Phase = “Concept” , the first CP (CP1) should be Closed with Resolution = Done.
The question here is how do I write the call to the API to do this bulk automation if I know my project keys? Is the API the best way or is there another way that this could be handled?