Hello All,
One of the scripts to create issues using REST API is giving the return code 400, with the following message:
Truncated server response: {"errorMessages":[],"errors":{"reporter":"Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown."}} (use muteHttpExceptions option to examine full response)
This is after the script defines the reporter and the user credentials used to execute the script have the relevant permissions on the project. This screen scheme has also been validated, and the create screen has the 'Reporter' field.
Code segment is as below:
So this is a company-managed project in Jira Cloud?
Worth checking the field configuration doesn't have the Reporter field hidden for some odd reason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And the account used may need to have the Modify Reporter permission in that project
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Matt Doar
Yes, this is a company-managed project in Jira Cloud, a standard subscription.
The reporter field is visible on the Create Issue screen and the user (myself) does have the Modify Reporter permission in that project.
Thanks,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaurav
like the doc you mentioned, you should use reporter > id and not reporter > accountId in your var data ;)
"reporter": { "id": "5b10a2844c20165700ede21g" },
I hope this helps.
Let us know if its solved the problem.
Cheers,
Dam.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Dam
Thanks for the prompt response. As suggested, I updated the code to use 'id' but it still fails with the same error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.