It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"The reporter specified is not a user" error when creating issue via REST Edited

I've seen answers here and here, but as far as I can tell I'm doing the same thing as the accepted answers indicate, and still getting this error.

I'm trying to create an issue via REST in Cloud. 

Here's what I'm sending through as the Body of the curl call:

 

{

"fields": {
"summary": "WhiteHat: test",
"issuetype": {
"id": "10041"
},
"customfield_10104": {"value":"$vId"},
"customfield_10105": {"value":"5"},
"customfield_10107": {"value":"www.mysite.com"},
"customfield_10108": {"value":"http://www.mysite.com/register"},
"customfield_10064": {"value":"Unknown"},
"customfield_10032": 14,


"project": {
"id": "10037"
},
"description": {
"type": "doc",
"version": 1,
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "this is a test description"
}
]
}
]
},
"reporter": {
"name": "Jira Monkey"
}
}
}

Jira Monkey IS a valid user in our system, but I'm new to Cloud. In on-prem, we had very specific usernames, but in Cloud all I can do is invite a user by email address; they are able to change their display name on their own. So what am I supposed to use?

Here's Jira Monkey's profile card; it's a valid user with a valid email address. The user does have access to create issues (it's my test user). Note that I'm getting the same error when setting my own name as the reporter.

jiraMonkey.png 

2 answers

1 accepted

1 vote
Answer accepted

Hi @Esther Strom 

 

you should use username, not display name.

 

You can check the username when searching issues, i.e. after selecting the user you will see his name in the URL.

 

Screenshot from 2019-03-21 12-49-44.png

Thank you. So the username is basically the first part of the email address used in the invite (i.e. the part before the @domain.com)

This is true in most of the cases, but as you can see on my screenshot sometimes it is different.

 

Moreover, please also remember that using name is deprecated and you will have to use accountId in the near future.

@Jakub Sławiński I should have clarified that in the case of OUR accounts, username should always be the first part of the email address. 

But yes, I'm aware that I will need to switch to ID in the future. Not a big deal. I just wanted to know why I was getting an error on what should currently be valid code.

I get "the reporter specified is not a user" an in the Reporter field there is just a string of numbers and letters. What can be wrong?

I am getting the same for a few users. I can add the users to the reporter field but they get the numbers and error.

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you