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

Cannot Update multiple issuelinks

I am trying to create an issue using: https://jira.ghs.com/rest/api/2/issue

When I create the issue I am using "update" to add "issuelinks".  I can add one issue link no problem, but I need to add multiple.

I am using JIRA v6.1.7.

The error I am getting when adding multiple issue links is:

{"errorMessages":[],"errors":{"issuelinks":"Can not deserialize instance of com.atlassian.jira.issue.fields.rest.json.beans.LinkIssueRequestJsonBean out of START_ARRAY token\n at [Source: N/A; line: -1, column: -1]"}}

Below is my json:

{
   "fields":{
      "project":{
         "key":"TEQA"
      },
      "assignee":{
         "name":"wharris"
      },
      "issuetype":{
         "name":"Test"
      },
      "description":"This is a test",
      "summary":"Test Jira Creation"
   },
   "update":{
      "issuelinks":[
         {
            "add":[
               {
                  "outwardIssue":{
                     "key":"TEQA-1111"
                  },
                  "type":{
                     "name":"Component Link"
                  }
               },
               {
                  "outwardIssue":{
                     "key":"VIRT-2222"
                  },
                  "type":{
                     "name":"Link"
                  }
               },
               {
                  "outwardIssue":{
                     "key":"VIRT-627"
                  },
                  "type":{
                     "name":"Link"
                  }
               }
            ]
         }
      ]
   }
}

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

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