Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to have issue key as link in subject line of email from automation.

Jason Chayer
Contributor
February 21, 2024

When I create an issue, I am wanting to send out an email. With this, I want the issue key to be in the subject line, and I want that issue key to be a link to the specific issue in Jira.

 

I have tried ...

{{issue.key}}

{{createdissue}}

{{issue.key.url}}

{{issue.url}}

<a href="{{issue.url}}">{{issue.key}}</a>

But to no avail

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
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 21, 2024

Hi @Jason Chayer 

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!

Kind regards,
Bill

Jason Chayer
Contributor
February 22, 2024

@Bill Sheboy - I am not in front of my automation rule to get an image, but below is what the rule is.

 

When: Issue created

Then: Send email 

    To: email address

    Subject: Critical issue created {{issue.key}}

    Content: all the information I have in here pushes correctly to the email

 

That is it. It is a pretty straightforward automation.

Where I am having an issue is the Subject Line, specifically {{issue.key}}.

When I receive the email, the subject line contains the issue key; however, I need that to be a link where I can click.

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 22, 2024

Depending upon your email tool's formatting, the URL or HTML version of it should work.

 

There is a known issue where the Issue Created trigger can fire so quickly that some issue data may not be available when the rule starts.  This can lead to unexpected behavior (like empty fields) or rule errors.

The work-around for that is to add the Re-fetch Issue action immediately after the Issue Created trigger.  This will slow the rule down a bit, reloading the issue data before proceeding to the next step.  Please try adding that and re-test.

 

If that does not work, please try posting those image of your complete rule, the send email action, and of the audit log details showing the rule execution.

0 votes
SilkeS
Community Manager
Community Managers are Atlassian Team members who specifically run and moderate Atlassian communities. Feel free to say hello!
May 28, 2025

This topic is now closed as the discussion has become outdated. If you have more questions or want to continue the conversation, feel free to start a new topic. For more details on why we close older threads, check out our  imageRules of engagement - Atlassian Community .

Thank you for your understanding!

0 votes
Ramiro Justet
Contributor
May 28, 2025

Hi Jason,

try replacing {{issue.url}} with this expression:

https://tu-jira-instance.atlassian.net/browse/{{issue.key}}

setting the instance name to your particular instance.

Regards

Ramiro Justet
Contributor
May 28, 2025
0 votes
Laurie Sciutti
Community Champion
February 21, 2024

Hi @Jason Chayer ~ try this:  {{createdIssue.url}}

Jason Chayer
Contributor
February 21, 2024

@Laurie Sciutti - unfortunately this did not work. It actually is not even pulling the issue key any longer.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question