Updating custom field via REST API
Issue #71
invalid
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)
-
repo owner -
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"
-
Hi Yury,
I am an idiot, checked the wrong issue… It is working, thanks
-
repo owner - changed status to invalid
- Log in to comment
Hi!
The field is single choice or multi?