Forums

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

Updating reporter with REST api failing

Koziol
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!
June 12, 2018

Hello

 

Using the rest api, I am trying to update the reporter ie. change it. This was working up until 2-3 months ago.

I call the following url: https://koziolsupport.atlassian.net/rest/api/2/issue/{ticketid}

The body of the PUT is:

 

{
"update" : {
"comment" : [{
"add" : {"body" : "Webshop Reporter Change"}
}]
} ,
"fields" : {
"reporter" : {"name":"dean@d.com"},
"customfield_10065" : "dean@d.com"
}
}

 

It returns an error that the reporter is not an user:

{"errorMessages":[],"errors":{"reporter":"The reporter specified is not a user."}}

 

dean@d.com is not a licensed jira user but a customer who raised a ticket, and is listed in the customer portal.

If I manually change the ticket in jira, then I can change the reporter to dean@d.com.

 

Please help if you have any ideas?

4 answers

0 votes
Deleted user July 30, 2018

I am creating a Jira issue from API and I get the "The reporter specified is not a user" for only some of the users in the account. Any idea what might be the reason?

Former user November 15, 2018

Facing the exact same problem. Did you figure out what caused this?

0 votes
Koziol
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!
June 13, 2018

Well, this used to work using the email address as a name value.  So to get this working, I query jira using the email address, retrieve the name which in my case is something like "qm:daed18eb-0270-4f61.."., update the ticket with the name.  It works now.

 

Thx for your help.

0 votes
Alexey Matveev
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.
June 13, 2018

Hello,

I guess the dean@d.com is the email address of the user, not the user name. But you need to provide the user name. 

"reporter" : {"name":"username"},

0 votes
Orawan Sittakom
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.
June 12, 2018

Hi @Koziol,

It should be

"reporter" : {"name":"username"}

So please ensure that dean@d.com is the username of that account. 

Arne Gottschalk
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!
February 25, 2025

You need to use the Acount ID:

{"fields":{"reporter":{"id":"0123456789abdef"}}}

Suggest an answer

Log in or Sign up to answer