Updating custom field via REST API

Issue #71 invalid
Former user created an issue

Hi Yury

Is it not possible to update a Tree-Customfield via Rest API? Not the schema, but the custom field on a given issue.

I get an empty response from my JIRA Server, when requesting this: Body: {"update":{ "customfield_13213": [{ "set": [ {"name": "A - Arts"} ] }] }}

Response: Ø

Comments (4)

  1. Yury Oboz repo owner

    I tried updated issue via curl:

    curl -u admin:admin -X PUT 'http://localhost:2990/jira/rest/api/2/issue/TR-1' -d '{"update":{ "customfield_10001": [{ "set": [ {"name": "Node4"} ] }] }}' -v -H "Content-Type: application/json"
    

    and it works

    For single tree cf remove brackets for value:

    curl -u admin:admin -X PUT 'http://localhost:2990/jira/rest/api/2/issue/TR-1' -d '{"update":{ "customfield_10000": [{ "set": {"name": "Node4"} }] }}' -v -H "Content-Type: application/json"
    

  2. Log in to comment