Forums

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

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

Tim Menke
Contributor
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!

2 answers

1 accepted

0 votes
Answer accepted
asif khan
May 14, 2014

HI,

Thanks for all help and support. I caold finally complete my code and its working fine.

Thank You,

Asif

0 votes
codelab expert
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 Champions.
May 8, 2014

Try var myObject = AJS.$(objectToTransform). If this doesn't help you please show your source code and we will find a solution.

asif khan
May 8, 2014

jQuery(document).ready(function() {

var abcd= [10];


//alert(getGroups("asif_khan"));

var abcd=getGroups("asif_khan");
for (var i = 0; i < 3; i++) {
alert(abcd[i]);
//var a= abcd[i]data.groups.items;
//alert(a);
}


//varb= abcd.groups;
//alert(b);

alert("hi");

if(project_name == 'Customer ')

{
//window.alert('Message goes here');
$('#popup_Support_').attr('checked','checked');
$('#popup_NotBillable_').attr('checked','checked');
$('#popup_Billed_').val('0');
}

});

function getGroups(user)
{
var groups;
AJS.$.ajax({
url: "/rest/api/2/user?username="+user+"&expand=groups",
type: 'get',
dataType: 'json',
async: false,
success: function(data) {
groups = data.groups.items;
}
});
return groups;
}

This the the code iam using.

PLease make the required changes in the code if you can.That will be very helpfull.

I tried with the method you provided, but didnot work.Please try that method too if possible.

Thanks alot,

Asif

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events