Hi Community,
My use-case is:
A Parent issue transitions from Open status to three different Statuses (Prioritized, Not-Prioritized, or Cancelled) based on it's Child Issues' statuses.
Per my configuration:
- Parent issue (issuetype = Initiative) is present in Parent Project
- Parent issue has three Children (issuetype = Portfolio Epic), present in three different Child Projects
- All Children are linked to Parent via Parent Link, present on child screen.
- Parent should transition to next status based on Children statuses as below:
- If all Children are transitioned to Cancelled status then Parent moves to Cancelled
- If all Children are transitioned to Prioritized, then Parent moves to Prioritized
- If all Children are transitioned to different statuses, then Parent moves to Not-Prioritized
I need help to run a logic using Nunjucks in Child Workflow - Transition issue(s) Post-Function under Advanced options > "Run this post-function only if a condition is verified" checkbox.
Any sample code or relevant help document on Nunjucks, will be a great help.
Thank you