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?
Facing the exact same problem. Did you figure out what caused this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"},
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Koziol,
It should be
"reporter" : {"name":"username"}
So please ensure that dean@d.com is the username of that account.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to use the Acount ID:
{"fields":{"reporter":{"id":"0123456789abdef"}}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.