The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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.

TAGS
AUG Leaders

Atlassian Community Events