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")
print(it.status);
return true;
Please help !
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.