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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.