4

I am trying to create issue using Jira REST API incuding component. I am posting this JSON but I get The remote server returned an error: (400) Bad Request.

Issue is:-Without component there is no error, but when component is there issue created. Any help? JSON:

{
  "fields": {
    "project": {
      "key": "keyGoesHere"
    },
    "assignee": {
      "name": "name.surname"
    },
    "component": {
      "name": "someName"
    },
    "summary": "test2",
    "description": "test2",
    "issuetype": {
      "name": "Task"
    }
  }
}
Alive to die - Anant
  • 70,531
  • 10
  • 51
  • 98
babboon
  • 683
  • 3
  • 20
  • 45

1 Answers1

14

I found the answer. Just in case someone needs it.

"components": [{
  "name": "someName"
}],
babboon
  • 683
  • 3
  • 20
  • 45