Forums

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

CRITICAL: Getting Issue with Reporter field on running Create Issue REST API.

felispaul May 9, 2022

Hi Team,

When I am running the following POST API for creating an issue in Jira Cloud:

https://cleartrail.atlassian.net/rest/api/3/issue with the following Request Body:

{
  "fields": {
    "project": {
      "id""14154"
    },
    "summary""First Story in Klera PSG",
    
    "issuetype": {
      "id""10001"
    },
    "reporter": {
      "id""606efca0a23f99007556912d"
    },
    "assignee": {
      "id""606efca0a23f99007556912d"
    },
    "priority": {
      "id""3"
    },
    "components": [
      {
        "id""19056"
      }
    ],
    "labels": [
      "Sub-Task"
    ],
    "versions": [
      {
        "id""33681"
      }
    ],
    "description": {
        "type""doc",
            "version"1,
            "content": [
                {
                "type""paragraph",
                "content": [
                    {
                    "text""First Story in Klera PSG created",
                    "type""text"
                    }
                ]
                }
            ]
        },
    "customfield_10800""Solution should meet the desired requirement"
  }
}
I am getting the following error on Postman:
{
    "errorMessages": [],
    "errors": {
        "reporter""Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown."
    }
}
We tried setting the Reporter Field on multiple screens by selecting multiple screens but still getting the same error. Do we need to check all the screens in order to get this error resolved. As for other fields, not all screens are checked in the field configuration this error is not coming for other fields. And we cannot select all the screens as its shared among other organizations in our company as well.
In what all cases this error is observed? 
Please help me out with this case and suggest what can be done in order to get this sorted out.
Regards,
Felis Paul

 

2 answers

1 vote
Fabio Racobaldo _Catworkx_
Community Champion
May 9, 2022

Hi @felispaul ,

moreover, in addition to what said by @Dirk Ronsmans , plese verify that user which run the create REST Api has "Modify Reporter" permission https://confluence.atlassian.com/adminjiracloud/permissions-for-company-managed-projects-1001823931.html

Hope this helps,

Fabio

0 votes
Dirk Ronsmans
Community Champion
May 9, 2022

Hey @felispaul 

That error should be about it not being on the Create screen for your Story (issue type with id:10001)

Do also make sure that the user you are using actually has permissions to create the issue as sometimes those error are a bit more ambiguous.

A quick test could be to log on with the user that you run the call with and try and create the issue manually with the same parameters. 

felispaul May 9, 2022

Hi Dirk,

I logged in into the user from which I am running this API call. This is my user and observed that I am able to create the issue manually from the Jira with the parameters and values provided in the API.

 

Thanks,

Felis Paul

Suggest an answer

Log in or Sign up to answer