You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.