update a custom field (select list) by API

Gurinder Summan February 20, 2025

We are using SAP and Jira (data center) in our organization
There is a select list field in SAP that contains about 1000 options in this field (for keeping drivers national codes)
We want to have this information in issues in Jira
So we have to create a custom field in Jira and get options from field in SAP
So we have to use API

1 answer

0 votes
Evgenii
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2025

Hi, @Gurinder Summan 

You can try request like this:

curl -D- -u *:* -X PUT --data "{\"fields\" : {\"customfield_10614\": [{ \"value\": \"TST1\" }, { \"value\": \"TST2\" }]}}" -H "Content-Type: application/json" http://jira.*.com:8080/rest/api/2/issue/XYZ-1000

Just adopt it to your credentials, and customfiled ID

Gurinder Summan February 20, 2025

where should I use curl codes?

Gurinder Summan February 21, 2025

image (1).pngimage.png

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events