How can I update a customfield with JIRA Rest?

Bahar Çağlar November 12, 2012

Hi,

I want to update a customfield with jira rest. Here is the url:

url = http://localhost:8080/rest/api/2/issue/ATL-545/editmeta

I am trying this: { \"fields\": {\"customfield_10609\": \""+Body+"\"}}

But I am getting 405 Error. How can I solve it?

Thanks in advance

3 answers

2 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2012

editmeta is used to retrieve the fields available for editing. To update, you should use PUT on issue key.

See https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Edit+issues for some examples.

0 votes
Hany Hassan January 27, 2017

In the documentation, it's mentioned that you can use editmeta only to get data not PUT or POST

0 votes
C_ Faysal
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2012

Suggest an answer

Log in or Sign up to answer