Adding Reporter when creating issue through API

I’m calling https://xxxxxxxxx.atlassian.net/rest/api/3/issue to create issues and I’d like to add the reporter at the time the ticket is created, but keep getting an error (see below). I also tried creating the issue without specifying a reporter, then doing a PUT to the issue, but same error. I’ve tried using both the AccountID and Name (email) of the user that I’d like to add as reporter and same error.

Thanks in advance!

Chris

Sorry, I misread, I though you wanted to set the Customer. This is a field / screen configuration error, which I’m utterly incapable of giving you any pointer on because, despite using Jira since 2009, I have never been able to figure out how issue screen configuration works.

2 Likes

Hi @ChrisGreen ,

It is possible that your user (the one that made the API call) does not have Modify Reporter permission

To verify that the user has this permission, you can go to permission helper (Click . then type Permission Helper) and key in the user, select an issue from the project you are working on (10081), select Modify Reporter in the drop down

If indeed your user do not have the necessary permission, you can set it in the Permission Scheme screen (Click . then type Permission Scheme), then update the respective permission scheme for the project you are working on.

Kindly try it out and let us know how it goes.

Cheers,
Ian

2 Likes

Hi @ChrisGreen ,

Are you calling GET /rest/api/3/issue/createmeta with the query parameter expand=projects.issuetypes.fields to determine whether the reporter is on the create issue screen for the type of issue you want to create?

Regards,
Dugald

1 Like

@iragudo - that helped me out! Thanks.

1 Like