Only want an issue to transition statuses if linked issue requirement is met

Issue #82 resolved
Paul DiNunzio created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi Paul,

    Use the following expression:

    count(filterByStatus(filterByIssueType(linkedIssues(), "Agile Testing"), "DONE")) > 0

  2. Fidel Castro Armario repo owner

    You could also use validator "Validation on linked issues" using the following configuration:

    conf-1.png conf-2.png conf-3.png

    Once configured, validator will look like this:

    conf-4.png

  3. Log in to comment