Hi
I"m trying to update workflow validator, previously set up and working to ensure any new task creation is created with a 'linked issue' as 'contained in' a 'feature' issue type.
The validator that works is:
At least 1 linked issues must be added on the transition screen with the is contained in link type and they must all respect the following condition:1
linkedIssue.getAsString("issuetype") in ["Feature"]
The following message will be displayed if validation fails: Task Must be Linked to a Feature.. This validation only applies if the following condition is true:1
issue.get("issuetype").getName() == "Task"
I want to update the above to include our 'Discovery' issue type in the condition, so the task must be linked to either feature or Discovery issue type as 'contained in.
However, when updating condition to be
linkedIssue.getAsString("issuetype") in ["Feature", "Discovery"], the validator doesn't work for the discovery linking, and only works for FEature linking. Is there another way to write it so it can be either ?
thanks