Forums

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

Sub task triggers another sub task

Dieter Hoffmeister
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 24, 2018

I have the following scenario:

Main task with
sub task A
sub task B
sub task C
.....
sub task n

Workflow:
when sub task A is transitioned to "Done", then sub task B should be transitioned to "Select for Implemetation"

when sub task B is transitioned to "Done", then sub task C should be transitioned to "Select for Implemetation"

.......
and so on for all sub tasks up to n.

I haven't found a solution. 

3 answers

1 vote
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 24, 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 and check if it is a subtask A, then autotransition the task B. 

You can do autotransitioning with the autotransition method.

You can read more about post functions here:

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

0 votes
Thomas Deiler
Community Champion
October 24, 2018

Dear @Dieter Hoffmeister,

you could also give the Jira Suite Utils a try. What you probably need are some workflow post functions.

So long

Thomas

0 votes
Nic Brough -Adaptavist-
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 24, 2018

You will need to write some scripts or code to do that. 

A post-function on the sub-task "done" transition should be able to 

  • read for the parent of the current task
  • work out from the current sub-task what the next one is
  • trigger a transition on the other subtask

I've done something very similar with Scriptrunner, but the "work out what the next one is" only applied to the client, and the code is from 3.12 I think, so not much use to us now.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events