Forums

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

Update issue summary by REST API

Gilad Shtern
Contributor
January 23, 2023

Hi,

I'm trying to update issue summary field via REST API (JIRA DC 8.22).

However, it doesn't seems to work. followed curl code:

curl -X PUT \
https://1.1.1.1/rest/api/2/issue/MAINT-12345 \
-H 'Authorization: Basic XXXXXXX' \
-H 'Cache-Control: no-cache' \
-H 'Postman-Token: XX_XX_XX' \
-H 'data: {"update": {"summary": [{"set" : "Big block Chevy"}]}}'

Kindly,

Gilad

 

1 answer

0 votes
Vikrant Yadav
Community Champion
January 23, 2023

Hi @Gilad Shtern Kindly check the Atlassian Doc for Editing an issue :- https://developer.atlassian.com/server/jira/platform/jira-rest-api-example-edit-issues-6291632/

 

curl --location --request PUT 'https://jira.abc.com/rest/api/2/issue/VTPC-1' \

--header 'Authorization: Basic eXZpa3JhbnQ6ViFoYW5AMjgyMDIy' \

--header 'Content-Type: application/json' \

--data-raw '{ "fields": {

"summary""Update Summary",

"description""desc1"

}

}'

Screenshot 2023-01-23 184142.png

Suggest an answer

Log in or Sign up to answer