Forums

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

How to assign an assignee using assignee's email ID while creating an issue through JIRA REST API

Siddhi
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2020

Hi,

I am trying to create an issue using rest API. I want to assign the assignee for issue while creating itself. But i am getting '400 bad request' as response.

My payload is :
{
  "fields": {
      "project": {
         "key": "XYZ"
       },
     "summary": "Test issue 4",
     "description": "This is a testing issue",
     "issuetype": {
         "name": "Defect"
      },
     "priority": {
         "id": "3"
      },
   "assignee": {
   "emailAddress": "abc@gmail.com"
     }
 }
}

It shows me error as :
org.springframework.web.client.HttpClientErrorException$BadRequest: 400 null

Please tell me what am I doing wrong.

Thank you.

1 answer

0 votes
Piyush Annadate _ACE Pune_
Community Champion
May 30, 2025

Hi, 
Is that for JIRA CLOUD or Data center?
For Cloud, due to GDPR, you cannot create an issue with adding email address for the user picker field. 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events