Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to transition a closed Epic to Done status when new stories are added to it?

Richard Lucas
Contributor
March 15, 2021

We want to be able to move an Epic from Done to In Progress when a story/task is added to it.  

eg pseudo code:

if Epic status in (Done, Cancelled) then
    change Epic status to 'In Progress'

I've tried the JSU Linked Transition, but that is does not have an 'If' ability, so the epic is moved to In Progress from any status the moment a new task is added to it.

Is there a ScriptRunner way of doing this?

3 answers

1 accepted

1 vote
Answer accepted
Leo
Community Champion
March 16, 2021

Hi @Richard Lucas,

Like Bill mentioned you can do that through automation. but if you don't automation and want to do with Scriptrunner, Yes you can do that

you need to write a custom listener and validate epic link and epic's status before changing status of Epic

 

Regards,

Leo 

1 vote
Justine Violante {Appfire}
Contributor
March 17, 2021

Hi @Richard Lucas 

JSU is also able to do this with JQL without code, using our workflow preconditions.

Please see instructions here on how to get it working, or feel free to reach out to our support if you need help.

 

Disclosure: I'm the PM for JSU and always on the lookout for ways to help users customize workflows without code :)

 

Cheers, Justine

Richard Lucas
Contributor
March 17, 2021

Hi @Justine Violante {Appfire} , 

That just sounds amazing - I'll definitely investigate and let you know.

Thanks for taking the time to reply

Cheers,

Richard

0 votes
Bill Sheboy
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 15, 2021

Hi @Richard Lucas 

I do not know if ScriptRunner can do this, and... Have you considered trying the automation for Jira to do this transition?  Perhaps something like:

  • Trigger: issue created
  • Condition: epic link is not empty
  • Branch: on parent epic
    • Condition: epic status is Done or Cancelled
    • Action: transition the epic back to in progress

To learn more about automation rules please look here:

 

Best regards,

Bill

Richard Lucas
Contributor
March 16, 2021

Hi Bill, 

Thanks for taking the time to reply. Unfortunately we don't have the Jira Automation plugin, though I'm hearing good things about it.

Like Bill Sheboy likes this
Bill Sheboy
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 16, 2021

Hi, Richard.  There is a free Lite version (and a paid one) for Server in case you want to try it out.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events