Validation for issue links field

Issue #433 resolved
ME created an issue

I cannot figure out a way to validate that issue links field is not empty during transition when the comes up Linked Issues is Duplicate.

See attached

Is there a way to do this, and if not it would be great to have such a feature?.

Thans

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi Moshe,

    You should use "Boolean validator with math, date-time or text-string terms" validator with any of the following boolean expressions depending on the exact validation you need to implement:

    1) At least one issue link is being created in transition screen:

    count(transitionLinkedIssues("")) > 0
    

    2) If current issue is being resolved as "Duplicate", at least one issue link is being created in transition screen:

    %{00028} = "Duplicate" IMPLIES count(transitionLinkedIssues("")) > 0
    

    3) If current issue is being resolved as "Duplicate", it also has at least one "duplicates" issue link (created in transition screen or previously):

    %{00028} = "Duplicate" IMPLIES count(linkedIssues("duplicates")) > 0
    
  2. Log in to comment