Only want an issue to transition statuses if linked issue requirement is met
I am using the following validator to only allow a transition if a linked subtask of type "Agile Testing" exists and is in the "Done" status. The problem I'm faced with is that a user can link two tickets, one in Done status of any type and one that is not done but is the "Agile Testing" type, and that satisfies the boolean validator the way I have it set up and I don't want that loop hole. I've tried nesting everything together but can't seem to get rid of parsing errors. Any suggestions?
Here is the validator I'm using in the transition:
(count(filterByIssueType(linkedIssues(""), "Agile Testing")) > 0) AND (count(filterByStatus(linkedIssues(""), "DONE")) > 0)
Comments (3)
-
repo owner -
repo owner You could also use validator "Validation on linked issues" using the following configuration:
Once configured, validator will look like this:
-
repo owner - changed status to resolved
I close the issue. Please, reopen it if you don't consider the issue is resolved.
- Log in to comment
Hi Paul,
Use the following expression:
count(filterByStatus(filterByIssueType(linkedIssues(), "Agile Testing"), "DONE")) > 0