Copy and pasting URL not working in Jira Server issue comment due to text formatting

Tim_Menke June 18, 2019

Running Jira Software 7.13.3

When I'm adding comments to a Jira issue, and I want to link to an external url, I'm always fighting the interface and I'm not sure if this is a bug or if I'm just missing something.

Steps

  1. I select some text in my comment that I want to be the link to the external url
  2. Select the external link button.
  3. I will see the following:  [<text I've selected>|http://example.com]
  4. I replace http://example.com with the url I wish to go to.  
  5. when I submit the comment,  I still see the exact same [<text I've selected>|<url I pasted in>]
  6. now if I go into edit the comment, and switch over to text mode,  I see an extra set of brackets surrounding the URL, and once I delete out the extra set of brackets and submit, then it works fine.
  7. This seems to have something to do with the content of the URL, because if I leave in the http://example.com and I hit submit, the link works, but I don't see any special characters or weird formatting in the url I'm using.    In this particular case, I'm just linking to an HP forum post.  

is this a bug? or am I just missing something?  Thanks!

10 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

9 votes
Answer accepted
Arjun Ashok Kumar Nair July 28, 2020

I think I found the solution to this. 

When you copy and paste(cmd+v) it considers the url as a link. When I pasted it as text(cmd + shift + v), the hyperlink now works

Manish Patel August 14, 2020

This worked like a charm -- thanks

jeremypcleung March 12, 2021

This worked perfectly! 

Alex Janes April 10, 2021

THANK YOU! This was just driving me mad.

Vijai Vj May 14, 2021

Wow ,, excellent 
it worked like a rock solid :)

2 votes
Tim_Menke January 29, 2020

issue continues to exist in 7.13.12

2 votes
Georgios Melissopoulos August 12, 2019

Yes. This might be a bug. I have the same experience. Wondering why no one from Atlassian team answered this question.

1 vote
Viktor October 22, 2019

Happens here too

1 vote
Tim_Menke September 27, 2019

just as an update.  issue still exists in 7.13.8

0 votes
John Schram April 21, 2021

The url detection seems a little flawed still in v8.5.2 when saving.

If I paste the url the interface correctly detects it and allows me to enter a human readable version, however on save it reverts to the Markdown string representation.

Going into text mode doesn't fix it. The url I'm pasting contains a pair of [] (amongst other valid url characters) and therefore it always reverts back to the plain text version regardless of what I do.

The url is from new relic and I've included a version below. To protect privacy the url has purposely been broken.

https://one.newrelic.com/launcher/dashboards.launcher?pane=eyJuZXJkbGV0YXNoYm9hcmRzLmxpc3QOiJWSVoiLCJlbnRpdHlUeXBlIjoiREFTSEJPQVJEIn0=&overlay=eyJuZXJkbGV0SWQiOiJXRhLWV4cGxvcmF0aW9uLmRhdGEtZXhwbG9yZXIiLCJpbml0aWFsQWN0aXZlSW50ZXJmYWNlIjoiuaXRpYWxBY2NvdW50SWQiOjE5NjIwMjEsImluaXRpYWxOcnFsVmFsdWUiOiIiLCJpbml0aWFsUXVlcmllcyI6W3siYWNjb3VudElkIjoxOTYyMDIxLCJucnFsIjoiU0VMRUNUIHN1bShzYW1wbGVzX2NvdW50KSBBUyAnQVVUYXggU3VibWlzc2lvbiBGYWlsdXJlcycgRlJPTSB4ZXJvX3N0YXRzZF9wZW9wbGUgIFdIRVJFIG1ldHJpY19uYW1lID0gJ3...

0 votes
Eric August 19, 2020

This issue is not solved as of Jira 8.5.0, part of a company installation which I'm currently using.

As the original post above states, you have to go into text mode, delete the extra brackets around the url, and then submit before the hyperlinked text displays properly in the comment.

0 votes
Afaan Naqvi April 30, 2020

Wow.. thanks for sharing the solution @Tim_Menke 

Can't believe this is the workaround I have been looking for and will have to resort to going forward.

0 votes
Viktor November 14, 2019

Fixed: https://jira.atlassian.com/browse/JSDSERVER-6545

Fix Version/s: 4.5.0, 4.4.2

 

Issue Summary

Sharing a link from "Related knowledgebase articles" panel creates a comment with an incorrectly formatted link. 

Specifically, the hostname is missing which causes the formatting to break.

0 votes
Andrew Januszak November 13, 2019

Did anyone submit a bug report for this yet?

Viktor November 14, 2019

Supposed to be fixed in 8.5, have yet to try it out.

 

https://jira.atlassian.com/browse/JSDSERVER-6545

Andrew Januszak November 15, 2019

I think that's a different issue... That bug relates specifically to Confluence linking.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question