I'm attempting to set fields on an Issue. I've tried both the description and custom fields.
I'm doing a PUT to system.atlassian.net/rest/api/2/Issue/XXX-123
My json is simple:
{
"fields": {
"description": "This is a test"
}
}
Attempting to use version 2 I'm getting a 204 error response with nothing but headers in the response.
Attempting to use version 3 I'm getting a response of
{
"errorMessages": [],
"errors": {"description": "Operation value must be an object"}
}
Any suggestions?
I have the same issue. Did you find a fix for this?
I was able to get it to work using a PUT to the url
https://hostname.atlassian.net/rest/api/2/issue/JIRA-3
With a body of
{
"id": "21960",
"key": "JIRA-3",
"fields": {
"customfield_10200": "110098"
}
}
That returns a 204 response, but it works.
Interestingly enough, as long as I have the id and key right in the body it works, and updates that id/key regardless of the issue specified in the url. In other words I can do a PUT to issue/JIRA-123, but it will update whatever issue is specified in the body. You do have to specify and issue in the url though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.