It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Receiving 400 Bad Request when assigning issue via JIRA Rest API Edited

Hello all, 

I am trying to make a PUT request for assigning an issue to a user and am running into a 400 error when doing the following:

PUT on <localhost>/rest/api/2/issue/<issue_id>

PAYLOAD: {"fields":{"assignee":{"name":"___"}}}

Alternatively, I have also tried with the following endpoint:

PUT on <localhost>/rest/api/2/issue/<issue_id>/assignee

PAYLOAD: {"name":"_____"}

And have gotten the same 400 response. 

I already have my permissions set so that any logged in user can assign issues, so not too sure what the problem is. Have been doing POST requests to update an issue's status, and to add comments - those requests work fine, I just seem to be running into this issue with assignees.  

Another strange problem is that if I make the following request:

PUT on <localhost>/rest/api/2/issue/<issue_id>/assignee


This returns a 204, but assigns the issue to the logged in user, instead of the individual specified in the payload. 

Any help would be appreciated - thanks!

2 answers

1 accepted

0 votes
Answer accepted


There must be a json returned with a detailed description of the error. Could you also provide it?

In the name field for the assignee you should provide the name of the assignee, not the display name of the assignee

Aha, that was the problem - was using the display name. Thanks! 

Hello @Caitlin Coyiuto @Alexey Matveev [cPrime] ,

I have the same problem : 400 status with an empty response when access Jira (7) rest api whith excel vba:

I don't have any error message just an empty response whith 400 status

Is it something missing in the requestHeader ?

With JiraService
.Open "GET", URLticket, False
.setRequestHeader "Accept", "application/json"
.setRequestHeader "X-Atlassian-Token", "no-check"
.setRequestHeader "Origin", URLJIra
.setRequestHeader "Content-Type", "application/json"
.setRequestHeader "Authorization", "Basic " + Base64Encode(loginJIRA + ":" + pwdJIRA)
.send " {""username"" : """ & loginJIRA & """, ""password"" : """ & pwdJIRA & """}"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

840 views 5 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you