Hi Community,
I'm trying to create a validator in Script Runner to check if the issue has Remote Link to the Confluence page then transition can be performed.
Unfortunately I can't find any solution for that because there is no ID for the Remote Link field in Jira. Also I don't know is it possible to use API request in Script Runner validator to get remote link values. Maybe I'm too newby in Script Runner and just googled that wrongly.
I'm hoping someone in community could help me with that, I would appreciate any solutions to use.
Thanks in advance!
I couldn't see a way to do this but this is what I know
The scriptrunner validator is using jira expressions and not groovy code so the syntax is different
The issue links can be accessed using issue.links
e.g. issue.links.map(link => { name: link.type[link.direction], issue: link.linkedIssue.id }).length >0
But this doesn't include links to confluence
Even with rest the call /rest/api/3/issue/AA-9999 only shows the issue links
You can however get the confluence links using
/rest/api/3/issue/AA-9999/remotelinks
but I haven't found a jira expression equivalent of that and its not possible to use the REST API in a validator
I can load the issue object in the validator but it doesn't have any properties for remote links
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.