Jira Rest API : Getting Error on Edit bug field https://tuhiram-singh.atlassian.net/rest/api/3/issue/VRM-1

I am using Jira API with this Link.

I am able to get the tickets from Jira to my ASP.NET page but when I am going to update some field of the bug from my ASP.NET page and calling JIRA API Post/Put Method then getting error. Pls help what format we need to send detail to API while calling Post/Put.

@vibhugupta Here’s an example PUT body that will update the summary and add a label to an issue:

{
  "update": {
    "summary": [
      {
        "set": "Update the issue's summary with this!"
      }
    ],
    "labels": [
      {
        "add": "foo-label"
      }
    ]
  }
}

The docs for the edit issue method are here: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put).

That being said, if you’d like to share exactly which fields you’re looking to update, someone here can help you to form the proper request body. :slight_smile:

1 Like

I am updating status of Bug and posting comment in bug.
I am writing my code in C# and calling API using httpclient.

Please help me how to form body so that my request may go through.

@nmansilla Can u please help me out with the question above