Harshad Holkar
Harshad Holkar

Reputation: 541

Update issue fields in JIRA

Hi I am using postman client for Chrome to run my rest api calls. I am trying to update issue in JIRA via rest API. I have referred to JIRA API also for updating an issue.

I am using PUT method to update an issue fields. Here is the syntax. PUT /rest/api/2/issue/{issueIdOrKey}

I am trying to update summary field like this.

{"update":{"summary":[{"set":"Bug in business logic"}]}}

But it is giving me the 400 bad request error.

and in the body its showing message "No content to map to Object due to end of input".

Please find the attached screenshot for more reference. Thanks in Advance.Jira Update issue

Upvotes: 0

Views: 1685

Answers (1)

dot
dot

Reputation: 627

In postman rest API client, add the json object to Body as in the below picture.

Request Body

  • I added authorization as Basic Authorization and provided JIRA credentials.
  • Note that the body should be raw and type should be JSON(application/json) instead of Text(default).
  • Response for this PUT request is 204 when update is successful.

Here is REST API Documentation for additional options.

Upvotes: 1

Related Questions