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 assign a user for issues while creating itself through rest API

tamiltamil
October 20, 2016

Hi,

I am done with creating issue using rest API.Now i am want assign the the assignee for issue while creating itself.

I tried below example ,

{
"fields":{
"summary":"assigneeeee name",
"project":{
"key":"MAIL"},

"issuetype":{"name":"Bug"},
"description":"ISSUE",
"assignee":{
"name":"user1"
}
}}

It shows follwing error: net.oauth.OAuthProblemException: HTTP/1.1 400 Bad Request

please help me in this.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Nic Brough -Adaptavist-
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.
October 20, 2016

It's not the assignee that is the problem, you aren't logging in correctly.  Check the way you are authenticating.