hyperlink in jira automation

Nate Dickinson
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.
July 8, 2022

Hi There, I'm trying to use jira automation to automatically input a link in a JSM issue when certain conditions are met. This in my case is placing a reference document on a related ticket. Right now the link is viewable and is clickable, but it shows the full URL for a confluence page which is looooong and I would like this to look similar to what you can do with an HREF tag in HTML. Is there a way to do this using jira automation? 

<a href="url">link text</a>

5 answers

3 votes
Nate Dickinson
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.
July 28, 2023

This is the answer: 

[Atlassian|http://atlassian.com]
2 votes
Heather Ronnebeck
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2022

Hi @Nate Dickinson 

Have you integrated your Jira and Confluence together already? If so then you also need to configure the Confluence Space and Jira project together in Cloud in order to get shorten links to work. 

Details on how to do that are located here - https://www.atlassian.com/software/confluence/guides/expand-confluence/confluence-and-jira 

However, here's a start:

Connect a Confluence space to a Jira project

This is the first step to integrating Confluence and Jira.

  1. Navigate to ‘Project pages’ in the Jira lefthand sidebar
  2. Click ‘Connect to Confluence’
  3. Search for the Confluence space you want to connect

I hope this helps.

Nate Dickinson
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.
July 8, 2022

I do have Jira and confluence linked, but what I'm looking for involves creating a comment when an automation is run. I'm basically trying to do what a hyperlink tag would do in  HTML. Is there a way to do an href or an equivalent in the comments section of JS or JSM? 

 

2022-07-08_12-34-58.jpg

Heather Ronnebeck
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2022

This page will have the markdown you need for the comment. Give it a go. 

https://support.atlassian.com/jira-software-cloud/docs/markdown-and-keyboard-shortcuts/

Like # people like this
Nate Dickinson
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.
July 20, 2022

Thank you! 

Manju April 25, 2023

Hi @Nate Dickinson ,
Did any of the approaches worked out for you? I tried both formatting styles in my Jira automation rule and non of them created a hyperlink to a text:


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

[Test2](https://www.google.com)

Can you please share what you used at the end?


Like Joost van de Vijver likes this
Heather Ronnebeck
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 25, 2023

Hi @Manju 

The format I had to use in the past was:

<https://www.google.com|Google>

The above would output the following:

Google 

 

I hope this helps.

Like Joost van de Vijver likes this
Manju April 25, 2023

Hi @Heather Ronnebeck ,

thanks for your quick response. I tried out this option as well, but the formatting in the Jira issue looks like this - no hyperlink
pic1.PNG
I believe the third formatting option is used in slack only, isn't it?  Is there anything we have to turn on in the settings in Jira to make any of the formats work?

Like # people like this
Joris Huisman May 4, 2023

HTML is disabled due to security risks, see https://confluence.atlassian.com/jirakb/enable-html-tag-usage-in-jira-server-text-fields-771895067.html

So hopefully the option [Test2](https://www.google.com) will be fixed by Jira in the future. I am also waiting for the solution.

Like Pedro Martins likes this
Joost van de Vijver May 9, 2023

Hello @Heather Ronnebeck 

are there any updates on this linking issue? I also am waiting for a solution to add a simple linked text to an automated response. I'm a bit surprised that something this basic is not possible... are we sure the is no alternative option that does work, that we missed so far? Please check internally if there is anything else we can try? Thank you!

Kind regards,
Joost

Like # people like this
Mikael Sandberg
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 9, 2023

@Joost van de Vijver You have to use the markdown format to add a link, like this:

[Atlassian|http://atlassian.com]

You can learn more about the markdown text here

Like # people like this
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 19, 2023

@Mikael Sandberg indeed your link is the one to use

The info other markdown link does not work for Jira automation.

Like Nate Dickinson likes this
1 vote
Christopher Barrie March 15, 2024

I wanted to share what worked for me.  We are on Jira Data Center.  

When sending an email out via automation, in order to embed a link I used this: 

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

Note there are no quotation marks, as others had in their examples above.  This is what worked for me.

Anna Chuzhyk
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!
March 29, 2024

It works! Thanks a lot! 

0 votes
Muhammad Akram Sharifi April 19, 2024

I have used below format it worked for me 

adding here that may help someone else for sending a link via jira email automation in the email body. 

<a href ="https://ABC.atlassian.net/plugins/servlet/ac/jira-timesheet-plugin/timereports-system?project.key=CORPO&project.id=20644&servicedesk.serviceDeskId=9"> Timesheets</a>

0 votes
Ben Gallant July 28, 2023

The accepted answer isn't the answer, so that's confusing.

Who around here updates these things to make sure the correct answer is the accepted one? 

@Mikael Sandberg provided the correct answer above by giving us the link to markdown for automation and inserting links: 

https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=links

Anybody else searching for this will first go down the weird Confluence rabbit trail (not sure why they thought Confluence was the answer??) before they finally find the right answer. 

Rant over lol 

Ben Gallant July 28, 2023

Maybe you guys can mark this answer as the accepted answer :D 

Tim Perrault
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.
July 28, 2023

@Ben Gallant 

 

There is technically only one answer on this post. The rest are replies to the answer where it was worked out further as a community. Further more, Heather pointed the OP to the correct support documents, but those look like they need to be updated by Atlassian.

Aaron Lewis September 29, 2023

So is this method working for everyone else? I am trying to comment Google Drive spreadsheet onto a JIRA Epic via Zapier automation, and I can't get any formatting to convert. All of my attempts result in the url being commented as straight text. I've tried both commenting it and putting it in the epic's description. I've run into this issue with other JIRA api calls outside of Zapier. 

I would love the Google Drive connection to pull through ideally, but I'd settle for just a normal hyperlink at this point. In the screenshot below, are (top comment) ideal scenario which I created manually, (middle comment) attempt using the exact text in the documentation link above, and (bottom comment) attempt using a Google Drive link.

Any help would be appreciated!Screenshot 2023-09-29 at 11.49.47 AM.png

Suggest an answer

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

Atlassian Community Events