Use post instead put in jira rest api

daniel_hedberg February 2, 2018

Hi,

 

Is it possible to update assignee or a field with post and not put? This is what i am using currently,

"user:password" -X PUT --data '{"fields":{"assignee":{"name":"username"}}}' -H "Content-Type: application/json" portal.jira.com/rest/api/2/issue/issue

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 6, 2018

Dear @daniel_hedberg,

that depends on the API - different request types on the same API call have different behaviors.

In your case, there is no implementation for POST.  Eventually the API is clever enough to fix forward and treat the request as a PUT.

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events