Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Move Parent automatically based on Children Transition in JIRA Datacenter

Digvijay Singh Gehlot
Contributor
November 7, 2024

HI Community,

I have created a Global Jira Automation Rule, where I want to transition the Parent (Initiative) to Prioritized/ Not-Prioritized status automatically based on Children (Portfolio Epic) (i.e. CRIS and GIB) transition to Prioritized/ Not-Prioritized status.

Problem:

  1. I am able to transition the Parent to Prioritized when 2 Children transitions to Prioritized; 
  2. And Parent moves to Not-Prioritized when 2 Children transitions to Not-Prioritized.
  3. But I am unable to move the Parent to Prioritized when one Child moves to Prioritized and another moves to Not-Prioritized.

Excepted Result should be:

  • When one Child is moved to Prioritized and another Child moves to Not-Prioritized, then Parent should always move to Prioritized automatically. 

Please find the below Global Jira Automation Rule (Note: I changed the name of Projects, Statuses and Transition)

Jira Parent-Child automation.jpg

Please guide on how I can move the Parent always to Prioritized status automatically when one child moves to Prioritized and another moves to Not-Prioritized via
Scriprunner, JMWE app, or Workflow Conditions/Post-Functions.

Thanks

1 answer

0 votes
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2024

Hi @Digvijay Singh Gehlot 

I looked at your logic in the automation and was wondering if you can replace it using a single lookupissue using jql and then from the number of elements returned, adjust the status of the initiative. 

lookupissues = project in (CRIS, GIB) and "parent link" = {{issue.key}} and status = "Prioritized"

Then use the lookupissues.count to see if it is greater than 1.

if so, set the Initiative status to Prioritized, otherwise non-prioritized.

 

It would definitively be shorter and easier to understand :)
Dick

Suggest an answer

Log in or Sign up to answer