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

validate subtask statuses using validator

I have written a simple scripted validator to check the status of my subtasks before going to next step, but it doesn't look like working neither i m getting any errors for my code :-


import com.atlassian.jira.component.ComponentAccessor;
import org.apache.commons.lang.StringUtils;
import com.atlassian.jira.issue.Issue;

def subTasks = issue.getSubTaskObjects()

subTasks.each {
if (it.status == "Complete")

return true;




Please help !

1 answer

Hi Tanu, could you further explain what your requirement is?

Do you want to hide a transition within the parent until all subtask get resolved?

No i do not want to hide my parent issue at all, that's the reason i am not using condition because if i use condition my parent issue will remain hidden until my condition is fullfilled, so looking for validator.

Simple scripted validator will do i think, just want a proper code as my code is not working, 


If any better suggestions i would be really happy to implement that 

Suggest an answer

Log in or Sign up to answer

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