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.
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.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.