Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jira REST API create issue including component

I am trying to create issue using Jira REST API including 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"
    }
  }
}
like image 442
babboon Avatar asked Jun 08 '26 05:06

babboon


1 Answers

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

"components": [{
  "name": "someName"
}],
like image 120
babboon Avatar answered Jun 10 '26 09:06

babboon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!