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..?
I have strong feeling that jeditor replaces that link...
Deactivated jEditor plugin and now it works...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Right feeling... 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.
No problem) You can mark the question as answered to close it.
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.
Please try {noformat} test linking http://www.atlassian.com{noformat}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your example does not work for me. Wenn I copy your example and paste it as a comment, it looks like this:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.)...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What version of jira do you use?
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.
- 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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Writing..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Comment rendered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Cant find the first thing you mentioned with the list of listeners, but this may help:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/secure/admin/ViewListeners!default.jspa - there is the list of listeners. That screenshot didn't help.
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.
could you please try to disable jeditor plugin for a moment, check the comment creation and enable it back?
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.