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

Jason Chayer 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

2 answers

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 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
Laurie Sciutti
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 ~ try this:  {{createdIssue.url}}

Jason Chayer February 21, 2024

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

Suggest an answer

Log in or Sign up to answer