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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,000
Community Members
 
Community Events
176
Community Groups

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:

Error.jpg

I would appreciate any help. Thanks in advance.

Cheers,

Almu

 

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events