I have a validator I need to apply on a transition in JSM cloud where not only should there be a linked issue, but the issue type of that linked issue should be Incident.
So far I have the following for the existence of linked issues
issue.links.length > 0
Anyone know what the rest should be? I know the following is the reference
https://developer.atlassian.com/cloud/jira/service-desk/jira-expressions-type-reference/#issuelink
Hi, Jira expression needed would be like below:
let linkedIssues = issue.links
.map(link => link.linkedIssue)
.filter(issue => issue.issueType.id == 10004);
linkedIssues.length >= 1
where 10004 is ID of the issue type, you need to find it for your instance.
To simplify such cases, we've developed the Linked Issues Validator, available as part of the free Workflow Building Blocks for Jira app. With a wizard-like UI, you can easily select options that represent your case. In the Jira Expression Preview, you'll see how the app constructs the expression behind the scenes. If your case is more complex, you can use it as a foundation for your own expressions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.