Page tree
Skip to end of metadata
Go to start of metadata
import com.atlassian.jira.issue.Issue;

List<Issue> subList = new ArrayList();
subList.addAll(issue.getSubTaskObjects())
passesCondition = false;
for(int i=0;i<subList.size();i++){
    Issue subIssue = subList.get(i);
    if( "Subtask-CR".equalsIgnoreCase(subIssue.getIssueType().getName())){
        passesCondition = true;
        break;
    }
}
  • No labels