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

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 Leaders.
October 20, 2016

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

Suggest an answer

Log in or Sign up to answer