Forums

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

Whenever I am trying to update labels field on JIRA, it's returning "Bad Request 400" error.

test test November 15, 2022

Tried:

{"update":{"labels":[{"add":"this-is-the-label-you're-adding"}]}}

getting below error:{

    "errorMessages": [],

    "errors": {

        "labels": "Field 'labels' cannot be set. It is not on the appropriate screen, or unknown."

    }

}

2 answers

1 vote
Florian Bonniec
Community Champion
November 15, 2022

HI @test test 

 

Is the labels field on the edit screen of the issue you arer trying to update ?

 

Regards

test test November 15, 2022

Screenshot (2399).pngScreenshot (2400).png

From the UI I am able to edit and add existing labels but while doing the same from postman it is giving the BAD REQUEST error.

 

Labels field is on the user interface.

Florian Bonniec
Community Champion
December 5, 2022

Hi @test test 

 

What is the payload you send in the api call ?

Have you add Content-Type header with value application/json ?

 

Can you send a screenshot of the payload and the headers you send, please make sure to blur any Authorization hearder or anything named token or cookies.

 

Regards

1 vote
Dave Mathijs
Community Champion
November 15, 2022

Hi @test test welcome to the Atlassian Community!

Can you confirm that the Labels system field is set on all issue operation screens (create/edit/view)?

test test November 15, 2022

Yes labels is set on all issues and i am able to update the label through user interface but unable to perform the operation through postman.

Dave Mathijs
Community Champion
November 15, 2022

I'm afraid I cannot help you with postman.

test test November 17, 2022

No Problem @Dave Mathijs  Thankyou so much for your response.

test test December 2, 2022

i want to update labels in jira through rest api call, can you help me with that.

Suggest an answer

Log in or Sign up to answer