The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Sending URL in comments via jira automation

Darius Lingevičius
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!
May 10, 2024

We have a automation, that sends content of a comment via email. However, if comment contains URL, it is displayed as [https://www.google.com/|https://www.google.com] Is there a workaround to solve that? 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Rudy Holtkamp
Community Champion
May 10, 2024

Hi @Darius Lingevičius & welcome to the community,

For URL via email, you need to use HTML.
So the above URL should be added as:

<a href="https://www.google.com/">https://www.google.com</a>

Use the .replace for the comment, like this

{{comment.body.replace("[","<a href=\"").replace("|","\">").replace("]","</a>")}}

This will replace

[ → <a href="
| → ">
] → </a>

Good luck,
Rudy

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events