It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Posting external link as comment to Jira using Node.js Edited

greg chap I'm New Here Nov 03, 2019

I am posting a comment with some text and external link combined as string using jira rest api(v3). Looks like below


"text [test|]"


Comment shows up as normal text without external link on the jira issue. Because it adds a backslash before the first square bracket. Even though it looks correct on jira ticket, as soon as I select Edit on the comment, i see

text \[test|]

so I tried unicode for the square bracket and posted comment like below

text [test|]

It shows correctly as comment, but again without the external link. I tried adding couple of \ before the first square bracket, I tried double square brackets around the external link as well, but no luck.

I am following the documentation for adding comment right below

Basically my request is as below

var bodyData = `{
  "visibility": {
    "type": "role",
    "value": "Administrators"
  "body": {
    "type": "doc",
    "version": 1,
    "content": [
        "type": "paragraph",
        "content": [
            "text": "text [test|]",
            "type": "text"

var options = {   method: 'POST',   url: '/rest/api/3/issue/{issueIdOrKey}/comment',   auth: { username: '', password: '<api_token>' },   headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json'
   },   body: bodyData};request(options, function (error, response, body) {
   if (error) throw new Error(error);   console.log(
      'Response: ' + response.statusCode + ' ' + response.statusMessage
   );   console.log(body);

Any thoughts on what I am missing?

Edit 1:

It's been few days, would really appreciate some one look at this issue. Added couple of tags> jira-service-desk, jira-service-desk-development. 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

222 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you