Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a dependency between sibling subtasks with ScriptRunner

Deleted user Dec 19, 2018

Hello everyone,

The scenario is the following one: I have a parent issue with 2 subtasks (sub1 and sub2), and I need sub2 cannot transition to "In progress" until sub1 is in Resolved status.

To achieve this, I have thought about creating a Simple scripted validator (ScriptRunner) in the transition "To In progress" of sub2 workflow, with this code:

import com.atlassian.jira.issue.*

String key = issue.key
issueFunction in subtasksOf('issueFunction in parentsOf("issuekey = key") AND issuetype = Sub1 AND status = Resolved')


But I get the error:


I would appreciate any help. Thanks in advance.






0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

88 views 7 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you