Validation on linked Issues does not work correct

Issue #1003 new
Haris Becic created an issue

Hi,

i have a Story issue type and i made the validator that the story can not be completed until all linked issues are in Status Closed, but this is not working as expected. I have a story and all linked issues are closed but still i can not close the Story and i get the error message from Validator. What is the problem here can you explain me?

Comments (3)

  1. Fidel Castro Armario repo owner

    Hi @Hare29,

    I think that the problem is that "Epic" is also a linked issue, and is not yet closed. Please, try selecting all issue types, but Epic.

    Please, create your future support questions at Decadis Service Desk. You can ask questions at JWT user's community at JWT Help Forum.

  2. Haris Becic reporter

    Hi,

    i do not understand how do you mean to select all but epic? Do you mean to select everything only not the Epic? How can i do this? Thanks

  3. Fidel Castro Armario repo owner

    Hello @Hare29,

    You have to do the following changes to your validator:

    1. Check all issue link types but "has Epic".
    2. Uncheck option "Allow unselected issue link types".

    You can also use "Boolean validator with math, date-time or text-string terms" with the following expression:

    count(linkedIssues() EXCEPT epic()) = count(filterByStatus(linkedIssues() EXCEPT epic(), "Closed"))
    
  4. Log in to comment