Bad Requestbody: [errorMessages:[], errors:[assignee:Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown.]]2017-11-08 08:30:26.864 ERROR - Please use the ScriptRunner user to complete this task not the Initiating User.
body: [errorMessages:[], errors:[assignee:User 'Paul Davis' does not exist.]]
First, check if this user is an active user.
Second, the assignee field need to appear in the view, create and edit screen.
Finally, check if you have defined the assignee in the script like that:
def result = put(
'/rest/api/2/issue/'
+issue.key)
.header(
'Content-Type'
,
'application/json'
)
.body([
fields: [
assignee : [
name: "user_name"
]]
])
.asObject(Map)
You'll need to explain where you are seeing this and what you're doing to provoke it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have impelmented the script runner and updating the assignee at 2 different transitions of the workflow -
one is at the issue creation where getting the error message as -
2017-11-09 09:55:34.139 WARN - PUT request to /rest/api/2/issue/150226 returned an error code: status: 400 - Bad Request body: [errorMessages:[], errors:[assignee:User 'Andreas, Elise C' does not exist.]]
But the user is present .
Second at the time of validation getting the error message as -
body: [errorMessages:[], errors:[assignee:Field 'assignee' cannot be set. It is not on the appropriate screen, or unknown.]] 2017-11-09 09:56:43.972 ERROR - Please use the ScriptRunner user to complete this task not the Initiating User. See https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-editIssue for more information. If you are using the ScriptRunner user then check the Field Configuration
But the assignee field is present at the issue screen and is editable also.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That error message can be a little misleading. Technically, it is probably right - the field does not appear on the screen, but it's not because the field is not included in the screen, it's because the user you have logged in as does not have "assign issue" permission. That hides the field from them, hence the "field not on screen" being correct, but not telling you the actual problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Check that assignee field is on the screen and you have assign issue permission.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Asignee field is already there on the sceen and i can change the assignee field still getting the error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The Asignee field is already there on the sceen and i can change the assignee field still getting the error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly provide your script
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.