Hello,
We're developing an internal way to move issues from an old system into the new one by just creating the issues in JIRA using the JAVA api.
We're running into problems when trying to set the reporter and assignee names. When using the code:
issueBuilder.setReporterName("jbrison");
We get the error message:
Exception in thread "main" com.atlassian.jira.rest.client.RestClientException: Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown. com.atlassian.jira.rest.client.RestClientException: Field 'reporter' cannot be set. It is not on the appropriate screen, or unknown.
Things to note is that, reporter is on all three screens (create, view and edit), and the user exists in the system already. When creating from the UI, I can add the reporter no problem, change the reporter to be someone else, etc.
Community moderators have prevented the ability to post new answers.
Hello Jason,
I assume your JIRA version is 5.0+ and you are using JIRA Java REST Client (JRJC).
It looks like an authentication issue indeed. Please check if 'reporter' field is on the 'create' screen for not logged in users or check if the user you are using has necessary permissions.
Cheers,
Jacek
It was indeed a permissions issue with the service account our dev was trying to use. Thanks for the help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I guess you are not inside a plugin and using the REST client (JRJC) to create issues. Read this post - https://answers.atlassian.com/questions/48192/jira-rest-5-0-create-issue-error
It seems JIRA reports this error, but it is actually an authentication issue or an incorrect JSON format being used.
Can you post the POST contents, Jason?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It was an authentication / permissions issue.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, I have the same issue, but we are not using 5. My client has version 4.X? what needed to be done on this? I checked with the client, he says for the user that I am using has the permission to create the issue. Any leads are highly appreciated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What version of JIRA are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.