How to input a shortcut to a jira issue in Confluence
Asked by Karie Kelly:

We just came from OnDemand to the download version and

* I initually could input ABC-123 - but then that stopped working. It doesn't create a link
* Then, I could input JIRA:ABC-123, but that doesn't work - it renders as text

Previously, when I input either of the above, it was a link - it didn't show the type, key, summary.

How do I:

* Input just a link to a jira issue - not the macro

Then, where we had a macro, there are errors and the only way to correct is to correct the data. But, I cannot locate any keyboard control to input the macro, JIRA issue - I can only use the keyboard to input the JIRA Issues macro.

Advice on any of these two is appreciated as we are having to go through ALL of our wiki pages and make edits to correct....this is hundreds of pages, if not close to a thousand...so, I only want to have to do this once!


Answers:
author: Alexander Wolden
body: The following documentation might help with creating links to jira issues:

<https://confluence.atlassian.com/display/DOC/Integrating+JIRA+and+Confluence#IntegratingJIRAandConfluence-CombiningConfluenceShortcutsandJIRAQuickSearch>

Set-up shortcut links to your JIRA and set up the link to use the alias "%s" which will cause the search term to be displayed as the link text  

So that way you can input \[ABC-123@JIRA\] and the displayed link will be [ABC-123](#)

comments: author: Karie Kelly
body: Alexander - thanks for that link as I've never used those shortcuts before. Do you know how do I get it to render ABC-123 instead of ABC-123@JIRA?

Really appreciate the help!


author: Alexander Wolden
body: When you create the shortcut link, use "%s" in the alias field.


author: Karie Kelly
body: Perfect! Thanks so much!!!


author: Karie Kelly
body: Yes, trusted links are setup. This is only the only JIRA reference that doesn't work.

We actually had deleted all application links because the migration from ondemand left some application links that were updated that caused us issues (which you can imagine!), and recreated everything by hand.

So, everything else is working except this one. Where we had JIRA:ABC-123 and JIRA ABC-123, all render as text. Everything where the macro was used renders as errors. There is a known bug for this that doesn't appear to have plans to be fixed; Atlassian gave us a workaround, but it doesn't make sense and too intrusive - they want us to rename our jira instance and redo our application links - but, as mentioned, all other ones work. In these case, we're just fixing the data...alot of work, but seems safer (especially since we are live).

Now, I'm trying to figure out how to just render a JIRA Key with a link like I had before vs rendering everything.

When we had wiki markup, you could also do this:

{JIRA:CCC-672\|columns=key)

to just display the key only (which is what we want)

But, that doesn't work.

In the RTE, we used to input the other formats mentioned and the worked.   


author: Andrei [errno]
body: have you setup trusted application links?


author: Karie Kelly
body: BTW - we also used to be able to input JIRA ABC-123 and that would link to the correct JIRA key...but, that doesn't work either. It just displays as text.