Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to update JIRA one issue field value with API like labels value

Jing Xu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 17, 2018

as title, do you have an example to help understand the API

like curl command example

thanks,

1 answer

0 votes
Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 18, 2018

Hi,

Here is what you need:

curl --request PUT 
-H "Authorization: Basic ZnJlZDpmcmVk" \
--url 'https://your-domain.atlassian.net/rest/api/2/issue/{issueIdOrKey}' \
--header 'Content-Type: application/json' \
--data '{
"fields": {
"summary": "This is a shorthand for a set operation on the summary field",
"customfield_10010": 1,
"customfield_10000": "This is a shorthand for a set operation on a text custom field"
}
}'

The documentation is here.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events