Forums

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

Can't enable HTML in issue descriptions

John A Fotheringham February 15, 2018

I want to enable a custom URI protocol in my issue descriptions so that a link of the type

<a href="myapp:args">click here</a> will work.

For this I need to enable HTML editing (although the description will be posted by the REST API)

I found this page

https://confluence.atlassian.com/jirakb/how-to-enable-html-in-jira-text-fields-771895067.html

And followed the instructions, but when I get to the Wike Renderer Macros Plugin, there's no "Manage Plugin" option.  I can exappand the list of 7 out o7 modules, but they don't include "Html", and in each case hovering over the module shows the message "Module cannot be modified".

I'm fairly new to Jira, so I'm hoping I've missed something really basic (e.g. putting myself in an edit mode)

 

2 answers

1 accepted

0 votes
Answer accepted
John A Fotheringham February 16, 2018

Just to follow up my own question, I think I have a workaround as follows:

  • In the issue I can add an external web link to my web site in the form :- http://www.mydomain.com/jiraIssue.html?<arguments>
  • On my site a create a jiraIssue.html page containing javascript that parses the incoming URI, creates an outbound URI in the form "myprotocol:<arguments>"
  • The window.onload function for this page redirects to the newly constructed URI

Seems to work okay.

2 votes
Warren
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.
February 15, 2018

Hi John

I tried the steps in your link and had the same issues - I think that document is old and out-of-date.

I then went into a Jira issue and looked at the Description field, which is a wiki renderer field and has a button for an external link. After adding one, I see that the format is

[the display text|url]

where the [  |  ]  are the delimiters.

You should be able to do the same via the API

John A Fotheringham February 15, 2018

The document says last modified Dec 10 2017 :-)

I tried what you suggested, and it does indeed work for http: type links (and in fact if you type in a fully qualified URL that also works).  Obviously the wiki code is changing this into a <a> tag linked to the typed URL.

My problem is that I want to use a custom URL protocol, rather than a standard one like http:/

In effect I want to be able to generate the following HTML

   <a href="myprotocol:arguments">click here</a>

and the wiki editor won't allow the creation of links like this.

Reading elsewhere in the forum it seems that this functionality isn't available in the Cloud version, and that an add-on is available.  Although whether that add on would work via the REST API I can't yet tell.

Essentially I want to post an issue via the API and be able to have that issue launch a custom app locally.

Danny
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 15, 2018

Hi John,

You already mentioned it, but I just wanted to confirm adding HTML or scripts to descriptions is a restricted function in Cloud. For more information please refer to Restricted Function in Jira Cloud Applications.

And if you're looking for some info on Jira REST API calls please refer to JIRA Cloud REST API docs.

Cheers,

Danny

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events