Forums

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

Links present in email sent via automation are broken

Pulkit Sharma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 24, 2023

I have a simple automation which sends an email on status change.

 

The automation has Send Email step with the following content:

Hello !

Ticket: {{ issue.url }}

Description:
{{ issue.description }}

- Jira Bot

 

If the issue has a description containing a hyperlink (working properly), the same link doesn't work when clicked via the email. 

This is because in the email the original link is converted to this:

[<original-link>|smart-link]

Because of the additional `|smart-link` appended to the link, the link becomes invalid and doesn't work (points to some other page, 404 in most cases)

 

I believe this is related to the auto conversion of links to "smartlinks" in jira, which the Send Email step in the automation is unable to undo properly.

3 answers

1 accepted

2 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.
November 25, 2023

Hi @Pulkit Sharma -- Welcome to the Atlassian Community!

That is a known defect; you may vote / watch this item to see any progress: https://jira.atlassian.com/browse/AUTO-762

A possible work-around, depending upon your tool receiving the email, is to send the field as text and let the URL parse.  For example, this will strip off the smart link encoding and leave only a URL:

{{issue.description.text}}

Kind regards,
Bill

1 vote
David Friedrich
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.
November 25, 2023

Hi @Pulkit Sharma ,

Welcome to the Atlassian Community.

Yes you are absolutely right. I was able to recreate this.
I was unable to find a bug issue for this (but I also didn't look very long...)
You should open a support request and Atlassian will either create a new bug ticket or if one already exists will let you know about it.

Please share the outcome here as well. Thanks!

0 votes
Igor Medeiros - Modus Create
Atlassian Partner
December 11, 2023

Hi @Pulkit Sharma ,

If you are looking for alternatives our app Notification Assistant for Jira can help you with this.

We fully support hyperlinks in the body of our messages, and we allow you to fully customize notification templates and rules.

Feel free to reach out.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events