Sudden "Reporter is required" error

Hello, i have a page that uses Jira’s API to create issues for my work.
The page has been working for almost a year, but as of today, everyone is unable to create issues and the “Reporter is required” error is showing up.

What went wrong?
Are there any changes made during this weekend that affected my page?

Here is the response data from my request (note that the “debug” key is the data i’m sending").

{
    "success": false,
    "msg": "CURL HTTP Request Failed: Status Code : 400, URL:https:\/\/neoassist.atlassian.net\/rest\/api\/2\/issue\nError Message : {\"errorMessages\":[],\"errors\":{\"reporter\":\"Reporter is required.\"}}",
    "debug": {
        "summary": "testt - Central",
        "issuetype": {
            "name": "Central"
        },
        "reporter": {
            "name": "jrosa"
        },
        "description": "test\n\n*GIT:* \n{quote}Link{quote} \n*Central:* \n{quote}Centrais{quote} \n*DEV:* \n{quote}00:00h{quote} \n*QA:* \n{quote}00:00h{quote}",
        "project": {
            "key": "SDP"
        },
        "components": [
            {
                "name": "Suporte"
            }
        ],
        "duedate": "2020-02-25"
    }
}

Edit: Solved by useing the accountId of the user

I’m having the same issue. Any idea as to why this happened?

I’ve tried setting the reporter name field to email and username. Only changing report key to id works. My reporter name varies so it wouldn’t be ideal to switch to using id of the user.

I am also getting the same error today only- “reporter is required”.
it was working earlier.
Can anyone provide the resolution?
Tried id, full name and email too. Not working any of these

please see

You need to use the account id instead of name from now on. I am still loking how to convert a name to an accountId via the REST API.

1 Like

@JeanPierreCaron there is an endpoint that is temporarily supported that can return account IDs for user names. See https://developer.atlassian.com/cloud/jira/platform/rest/v3/#api-rest-api-3-user-bulk-migration-get

For more details on the changes, maybe take a look at this post from October 2018 https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/

Hi,

I was also facing the same issue and figure it out. Find the answer below

“reporter”=> array(
“accountId”=>“xxxxxxxxxxxxxxxxxxxxxxxx”
),
“assignee”=> array(
“accountId”=>“xxxxxxxxxxxxxxxxxxxxxxxx”
),

Now “name” key will not work instead you have to use “accountId”

To find accountId you have to navigate user page, you will get accountId from url

eg:- Administration → this is accountId.

1 Like

Thanks for the solution.
Actually I found the solution yesterday same as you posted.

@DeveloperSandeepKuma all of the user APIs in Jira Cloud return the account ID of the user. e.g. things like user search.