URL encoding in description/comment field

Deleted user July 23, 2014

Hi,

I want to paste some code(incl url/links) with highlighting ({code}) into description field, so an other colleague can simply copy / paste the code to work with it.

The problem here is, that jira always adds a <a href.. in front of the URL, so the person who copys the code will always get compile errors.

So

What I do is:

{code}
some useful php code and https://www.atlassian.com/<br< a="">>{code}

What I expect to see in the description field/comment field:

some useful php code and https://www.atlassian.com/

What I actually get is:

some useful php code and <a href="https://www.atlassian.com/">https://www.atlassian.com/</a>

Ths is really annoying..I want a code block, I want that syntax highlighting but I do not want to have this <a href piece...


Thats should not be rocket science..?

3 answers

1 accepted

0 votes
Answer accepted
Alexey_Rjeutski__Polontech_
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.
August 14, 2014

I have strong feeling that jeditor replaces that link...

Deleted user August 14, 2014

Deactivated jEditor plugin and now it works...

Deleted user August 14, 2014

Right feeling... Thanks a lot!

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

No problem) You can mark the question as answered to close it.

0 votes
Deleted user August 14, 2014

JIRA v6.1.7

0 votes
Alexey_Rjeutski__Polontech_
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.
August 14, 2014

Please try {noformat} test linking http://www.atlassian.com{noformat}

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

Hi, I've just checked on my local jira:

{code:xml}

<test>

<another tag="http://www.atlassian.com"/>

</test>

{code}

and that worked fine. could you please give the example that fails?

Deleted user August 14, 2014

Hi Alexey,

when we use {noformat}, we dont have any code highlighting within this section, which is important for us to show that this is a code block and not plain text

Deleted user August 14, 2014

Your example does not work for me. Wenn I copy your example and paste it as a comment, it looks like this:

<test>
<another tag="<a href="http://www.atlassian.com">http://www.atlassian.com</a>"/>
</test>
I dont want that
Deleted user August 14, 2014

I am using the Wiki Renderer and thats why it pastes this <a href ... code block.

As soon as I set the Default Renderer, it works. But then you cannot use any of the code formatting tools which atlassian provides (bold, table, background color, etc.)...

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

seems you use default text renderer for your comments,

could you please try to open the field configuration (from here /secure/admin/ViewFieldLayouts.jspa) , open configuration to edit, find the comment field, and follow Renderers link, select Wiki renderer and try again.

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

What version of jira do you use?

Deleted user August 14, 2014

JIRA v6.1.7

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

- I've tried on 6.1.7 with provided option - and that worked fine. The same for description. Could you please share the rendered comment / description image? and also the screenshot of it in edit mode?

Deleted user August 14, 2014

Writing..

Deleted user August 14, 2014

The Comment rendered

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

1. Please add a screenshot with the list of listeners on your system (Administration - system - listeners)

2. Please show the list of renderers for the comment field inside configuration (with screenshot)

Deleted user August 14, 2014

Cant find the first thing you mentioned with the list of listeners, but this may help:

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

/secure/admin/ViewListeners!default.jspa - there is the list of listeners. That screenshot didn't help.

Deleted user August 14, 2014

Alexey_Rjeutski__Polontech_
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.
August 14, 2014

could you please try to disable jeditor plugin for a moment, check the comment creation and enable it back?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events