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>
[Atlassian](http://atlassian.com) is old news and <a href=http://atlassian.com>Atlassian</a> even older. They just don't work anymore.
[Atlassian|http://atlassian.com] is the way to go.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works! Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me as well! Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you guys can mark this answer as the accepted answer :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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:
This is the first step to integrating Confluence and Jira.
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Mikael Sandberg indeed your link is the one to use
The info other markdown link does not work for Jira automation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this worked for me
[{{issue.key}}|{{issue.url.customer}}]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.