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
Hi Ryan,
I do not see any issue in the script. It should work as long as the issue type name is "Discovery". Please recheck the issue type. Pay attention to the case, trailing and leading spaces. To test if the issue type has trailing/leading spaces, test this script against an issue with issue type "Discovery"
"/" + issue.getAsString("issuetype")+ "/"
Regards,
Radhika
thanks Radhika - your script showed my discovery issue type had a trailing space. I've updated the script i had, and it now works. Thanks so much for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.