Is there a way to reopen all the sub-tasks of a parent ticket during its transition to another status?

Vishali
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.
June 5, 2013

Is there a way to reopen all the sub-tasks of a parent ticket during its transition to another status?

Thanks,

Vishali

3 answers

1 accepted

1 vote
Answer accepted
Bhushan Nagaraj
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.
June 5, 2013

Hi Vishali,

You basically need a workflow post-function plugin. You can write a jira plugin or use Jamie Echlins script runner plugin.

Here is a similar example in the documentation found in script runner plugin.

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions#PostFunctions-Autocloseallsub-tasks

You might also find the following plugins related to sub-tasks useful. Take a look

https://marketplace.atlassian.com/plugins/com.stygian.jira.plugins.subtaskassign

https://marketplace.atlassian.com/plugins/com.stygian.jiraplugins.copycomments

Cheers

Bhushan

Vishali
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.
June 6, 2013

I have used this with just the id changed in setAction (5), it worked as I expected.

https://jamieechlin.atlassian.net/wiki/display/GRV/Post+Functions#PostFunctions-Autocloseallsub-tasks

Thank you, Bhushan and Jamie.

0 votes
Renjith Pillai
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.
June 5, 2013
0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
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.
June 5, 2013

You could use a JCLI post function from CLI Plugin for JIRA with something like the following action:

--action runFromIssueList --search "parent = %parent_key% and status = Closed" --common "--action progressIssue --issue @issue@  --step ""Reopen issue"" " --server %base_url% --user automation --password ***

Suggest an answer

Log in or Sign up to answer