I'm sending a PUT request to `rest/api/2/issue/:issueKey?returnIssue=true` to edit an issue, which should return the updated issue according to the documentation.
However, I'm only receiving a 204 response with no content. Is there a known issue with this endpoint, or am I missing something in my request? Any guidance or documentation on correctly using this feature would be helpful.
Is there a known issue with this endpoint?
Nope. Both the v2 and v3 versions of that endpoint are working perfectly for me. If I add returnIssue=true to the request, then I get the expected 204 message and the extra JSON response telling me what fields I changed.
am I missing something in my request?
When you tested the request in your API test tool, did you get a different result to your coded version of the request?
I get 204 No Content without a body on both Insomnia and Postman.
I tried changing the "set" value in case it only returned changes too.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you 100% absolutely positively sure you're sending this request to a Jira CLOUD instance and not a Jira SERVER or Jira DATA CENTER instance? (I can't tell, since that information in the request URL is obfuscated as a host variable in your screen grabs).
The Edit Issue endpoint of those two products absolutely does not support the use of a returnIssue parameter. Only the v2 and v3 endpoints for Jira CLOUD supports it.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.