Hi,
we have our own custom field type fields(select and multiselect) and we are unable to update those fields with jira REST api's .
appriciate any hel on this!
Thanks,
Hi Rambanam,
You didn't specify what method exactly you are using or what error you get.
But still, here is generic example on how to interact with Jira REST API using curl from commandline (like Linux Bash):
curl -D- -u 'jira-user':'jira-password' -X POST --data '{ "customfield_10000": { "id": "12000" }, "customfield_12000": [ { "id": "13000" }, { "id": "14000" } ] }' -H 'Content-Type: application/json' https://yourjirainstance.com/rest/api/2/issue/
Note that "customfield_10000" is regular dropdown field (where you can choose one option only) and "customfield_12000" is a multi select field (where you can choose one or more options).
Of course you have to replace all the IDs with appropriate ID from your Jira instance.
Also if your JSON string is very long there is a chance your script won't work - there is a workaround for that - just save JSON to file and use:
curl -D- -u 'jira-user':'jira-password' -X POST --data @'/path/to/file.json' -H 'Content-Type: application/json' https://yourjirainstance.com/rest/api/2/issue/
If you need more help I am happy to provide and also share Python example.
Best of luck and let us know if you have solved your problem (and how)!
Hi Rambanam - Since this is a development related question, you might want to try asking over at the developer community site here: https://community.developer.atlassian.com
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks ! i will post there!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like this is the topic you posted: https://community.developer.atlassian.com/t/update-our-own-custom-field-type-with-rest/1927
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
yes, thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.