Hi,
We have to validate and only allow the transition of a parent story ticket when its specific subtask ticket type "Definition of Done" is in "Closed" status. Is that something that I can use JMWE to build a custom validation for?
That validation would occur when the transition screen modal is displayed - if the associated subtask is not in closed status then I'd like to display a message for the user on that modal.
I think I found the answer using the linked issue JMWE validation option but what happens if the ticket I'm validating doesn't have a sub-task with that type (not all tickets have the DoD subtask)? Do I have to add a conditional that checks to see if the ticket in question has that sub-task first?
I tried entering the following conditional but I can't figure out the correct syntax:
!issue.get("subtasks")?.any{it.getIssueType().getName() == "DoD - Definition of Done"}
Please advise.
Thanks!
Hi,
you can use the "Linked Issue Status Validator" that can do exactly what you're looking for without a single line of code - you can select the link type (Is Parent Of), the issue type of the sub-tasks to check ("Definition of Done") and the statuses these particular sub-tasks need to be in ("Closed").
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.