Forums

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

How to make the parent issue take on a status of a sub-task based on different sub-task transition.

Gil
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.
October 30, 2018

Hi all.

 

Is there a way to auto transition a user-story based on the status of its sub-tasks?

For example:

1. The 1st sub-task is moved into dev -> Set User Story ticket (parent) to 'In Progress'/'In Development'

2. If all the sub-tasks are done -> set User Story to 'Ready for Testing'.

I'm very new to jira cloud administration, so I need a dumb proof guide if someone is willing to assist.

 

Thank you.

1 answer

0 votes
Alexey Matveev
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.
October 30, 2018

Hello,

You would need an add-on for it.

For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a post function for the subtask moving into dev with a script like this:

autotransition(121, parent);

This script would move parent of the sub task to the dev status.

121 is the id of the transition leading to the dev status.

You could create a similar post function for the done status.

You can find more info about post functions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

Gil
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.
October 31, 2018

Thank you, Alexey. Is 121 a uniform ID for transitioning from Open to In Dev? If not, how can I find what is the transition ID?

Alexey Matveev
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.
October 31, 2018

You can find ids of all transitions if you go to project settings -> workflows and open the required workflow:

Screenshot 2018-11-01 at 07.55.44.png

Like Gil likes this

Suggest an answer

Log in or Sign up to answer