Update Issue label with JIRA REST API

Uma Ilango June 21, 2022

Hi,

I would like to update my issue with new labels via JIRA REST API. I am using JIRA Server. 

Below is the curl used

curl --location --request PUT 'https://jiraserverurl/rest/api/latest/issue/PJFA-1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer XXXXX' \
--data-raw '{
    "update"{
        "labels"[
           {
               "add" : "newlabel"
           }
        ]
    }
}'
I am receiving 200 Http Status code. however, the labels are not added. Its always empty array

 

0 answers

Suggest an answer

Log in or Sign up to answer