How can I use the work request custom field in jira using rest api

Sri Sandhya March 27, 2023

Actually that work request custom field is of option type how to update/set the values to that field using jira rest api

 

1 answer

1 accepted

0 votes
Answer accepted
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 28, 2023

Hi @Sri Sandhya ,

you should be able to do that using the following rest api https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-put

In order to update a specific select list custom field you should put custom field id and option id in the fields section :

"customfield_10010": 1

Hope this helsp,

Fabio

Sri Sandhya April 5, 2023

Thank you @Fabio Racobaldo _Herzum_ I thought it was value not the option ID.

Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 5, 2023

You're welcome @Sri Sandhya . If it solved your question please mark my answer as accepted ;)

Like Sri Sandhya likes this

Suggest an answer

Log in or Sign up to answer