Hi,
We have requirement to validate the subtasks. if subtasks are closed or excluded then transition of parent issue should be possible. We're using JMWE validator "Related issues status validator".
But the challenge is these subtasks have a select list custom field "customfield_1". having options 1.Automated 2. Manual.
We want the validator in such a way that only subtasks having closed or excluded status with "customfield_1" = "Automated" to be checked. Other subtasks with "customfield_1"= manual can be skipped even if these subtasks are not closed or excluded it should allow for the transition.
Any suggestion would be helpful!
Hi @Issa
for that requirement, you shouldn't use the Related Issues Status Validator but instead the Related Issues Validator.
For the "Mode" option, select "Check related issues". Then select "Sub-tasks of the current issue". Finally, under "Condition on related issues", use the following script, and check the "All related issues must verify the condition above" option:
relatedIssue.getAsString("customfield_1") != "Automated" || relatedIssue.get("status").name in ["Closed","Excluded"]
You'll need to replace customfield_1 with the name or ID of your custom field, and check the status names (which are case-sensitive).
Hi @Issa
I'm glad it worked.
However, I'm afraid you "accepted" the wrong answer... Can you please accept my answer instead, as it would otherwise mislead other readers?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Using JMWE I would use a JQL that includes the sub-tasks as part of the criteria, try: Summary ~"Customfield_1" AND (issuetype = "sub-task" AND Statuscategory = Done)
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.