Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

3 votes
Answer accepted
Rudy Holtkamp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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

Suggest an answer

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

Atlassian Community Events