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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

135 views 16 7
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you