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

How to create a dependency between sibling subtasks with ScriptRunner

Deleted user December 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
AUG Leaders

Atlassian Community Events