Trigger parent transition from subtask using script runner

I use Jira and have the script runner plugin installed. I want to trigger a transition from a subtask on the parent using script runner. I know that it's easy to do with Jira Misc Workflow extensions, but I'd rather do the same function with Script Runner.

Script runner already provides to do the parent transition when all subtasks are resolved, but that's not the case in my situation.

2 answers

I would really like an answer to this also


I'm also interested in a solution to transition the parent depending on the subtasks.

Especially I want to transition the parent if all subtasks of a specific type are resolved.

However at the moment I'm trying to use a workaround with the the Script workflow function "Transition parent when all subtasks are resolved". But I'm facing the problem that this is only working if I have more than one subtask. If I have only one subtask which gets resolved the transition of the parent is not triggered, as soon as I add a second subtask and resolve this the parent is moved to the next state.

I would be grateful, if there is anybody who could provide a solution to the original question or help me with my workaround.

Thanks in advance.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

167 views 1 17
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you