I'm writing a rule to send Slack notifications with the 'Automation for Jira' add-on.
Unlike other issue fields, I can't get the remote links by smart values like '{{issue.key}}'.
Any walkaround to fix it without using a groovy script? Thanks
Hi Louis,
You can use the issuelinks information in Automation, although as you discovered it's not as straightforward as just calling other fields. The issuelinks object is fairly nested, so you'll need to summon values farther down using the dot notation on the object. Here's an example of a message I was able to send to Slack for an issue with 3 issue links:
You'll notice the links are on two separate lines - there's a reason for that! Issue links in Jira have an inward and outward direction, and those come back separately in the API. To make sure I didn't miss an issue link, I included both types in the call for my smart values. Here's the message source for my example:
Issue {{issue.key}} is now for your review!
Links:
{{issue.issuelinks.inwardIssue}}
{{issue.issuelinks.outwardIssue}}
Hopefully that helps clear things up! Adding .inwardIssue and .outwardIssue to the issue.issuelinks smartvalue should get what you're after.
Cheers,
Daniel
Wow, I'll try it out right now. Many thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Eads That's really cool. Is there a way to pull additional data from the issue link?
For example, the name and URL of a web link.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Stephen Doyle have you found a solution your question yet?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Daniel Eads , I tried your suggestion above in order to copy a field into another, but this was the result:
Is there an adjustment you can recommend wherein the highlighted just shows the Ticket Name as opposed to the URL?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@JoeYou should be able to append the property to the string, like:
{{issue.issuelinks.inwardIssue.summary}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And if u want it, you can reach url by {{issue.issuelinks.inwardIssue.url}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.