Need help with Smart Value to find linked issue of type "is implemented" to send slack message

Amed Moreno February 14, 2024

Hi Community,

I'm having a hard time figuring out the Smart value for getting a linked issue of type "is implemented" to be sent as a link in the Jira automation action "Slack Message". Currently have tried a few options but this is the last one I tried:

{{issue.fields.issuelinks.type."is implemented".toUrl|issue.key}}

Have tried a few variations like above but cannot get anything to show in the Slack message.

Any help is kindly appreciated.

Thank you,

Amed

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2024

Hi @Amed Moreno 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected.  Those will provide context for the community to offer ideas.  Thanks!

Until we see those...

How you access the issues in your rule determines how to reference the smart values.  For example, if you are branching to the linked issues, a key is {{issue.key}}.  But if you are gathering the issues with JQL in a lookup issues action, that would use another smart value:  {{lookupIssues.key}} for a list of the keys.

Seeing your entire rule will provide context for the community to offer better suggestions.

Kind regards,
Bill

Amed Moreno February 15, 2024

Hi Bill,

Thanks for looking at this.  This is Jira Data Center so not sure that I have {{lookupissues}}.

It's just the Slack Message action and am trying to print to Slack in clear language.  What I've highlighted in first attached screenshot does not print the linked issue in the Slack message ... it just skips over it and does not reference any issue at all (or original issue).

The log just says success (Successfully sent Slack Message).

Rule Config

image.png

Audit Log Result

image.png

Snippet of Slack Message

image.png

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2024

Thanks for that information.

As you are using Data Center version, you do have the Lookup Issues action.  After looking at your rule, I realize you may not need it for this case.

Instead you can try list filtering on the link type to get the key: https://confluence.atlassian.com/automation/jira-smart-values-conditional-logic-1081351607.html

I am using Jira Cloud, and this one works for me.  Please adjusted it based on the structure of the issue data for Data Center.

{{#issue.issuelinks}}{{#if(equals(type.inward,"is implemented"))}}{{inwardissue.key}}{{/}}{{/}}

Like # people like this
Amed Moreno February 16, 2024

@Bill Sheboy 

This worked as expected (and written) in Jira Data Center as well Bill!

Thanks so much for the assistance here!  I am so thankful to have your help here in the Atlassian community and can only hope to one day be as masterful as you are with these smart values!

Thanks again and Have a great day ahead! 

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 16, 2024

Awesome; I am glad to learn that helped!

0 votes
Humashankar VJ
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2024

Hi @Amed Moreno.

Try Createing a new rule
a,Project setting -> automation
b,Create a trigger
c,Add an action to find the linked issues and it types incase if you want to see any specific
d,Use Smart Values to specify the issue type and any other parameter based on your convenience
e,After finding the linked issues, try adding an action to send Slack msg

Suggest an answer

Log in or Sign up to answer