Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Can we set any automation for EPICS to be marked as DONE once all TASKS are DONE?

Amitava Mallick March 21, 2022

Can we set any automation for EPICS to be marked as DONE once all TASKS are DONE?

2 answers

0 votes
Amitava Mallick March 21, 2022

Is this correct?

JIRA AUTO CLOSE.jpg

0 votes
Dave Bosman [Realdolmen]
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.
March 21, 2022

Hi @Amitava Mallick 

You should be able to do this with automation rules. 

  • Create a rule that triggers when a task is done. 
  • add a new condition - issue fields condition
  • set field to "issue type"
  • set condition to "equals"
  • select the different issuetypes that are allowed to set the epic to done.  
  • add a new branch  - Branch rule /related issues
  • set the type to Epic (parent)
  • add a new condition - related issues condition
  • set "related issues" to "Stories (or other issues in this epic)"
  • set condition to "All match specified JQL"
  • set matching JQL to "status =  done"
  • Add an action that transitions the parent to done

 

Regards

Dave

Dave Bosman [Realdolmen]
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.
March 21, 2022

Hi @Amitava Mallick 

The branch should be "for Epic (parent)"

Regards

Dave

Like Amitava Mallick likes this
Amitava Mallick March 21, 2022

Auto Close Epic.jpg

 

Lets hope this works now. BDW this is a Team Managed Project? Would that affect this automation rule?

Amitava Mallick March 21, 2022

Auto Close Epic.jpg

 

Its failing somehow. I must have made mistake somehwre

Dave Bosman [Realdolmen]
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.
March 22, 2022

Hi @Amitava Mallick 

It seems it is failing in the transition itself. 

Can you transition the issue from the current status to done if you do it manually?

Do you have any validators and/or conditions set on this transition?  

Regards

Dave

Amitava Mallick March 22, 2022

There are NO validators or conditions here

Amitava Mallick March 22, 2022

Yes, I can transition the issue manually to DONE

Dave Bosman [Realdolmen]
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.
March 23, 2022

Hi @Amitava Mallick 

Ok, it's not as simple as i expected. 

Maybe a stupid question but i'm going to ask it anyway, have you set properties on the statusses that could prohibit Automation to perform this transition? 

Can you share a screenshot of the last step in the automation rule?

And also a screenshot of the workflow? I need the incoming transitions to Done specifically. 

Regards

Dave

Amitava Mallick March 25, 2022

No Dave. There is no set properties on the statusesJIRA AUTO CLOSE.jpg

Amitava Mallick March 25, 2022

PFA the flowJIRA AUTO CLOSE.jpg

Suggest an answer

Log in or Sign up to answer