I have a website that automatically creates jira issues. when i try to update the reporter using rest api, its giving me the below error.
{"errorMessages":[],"errors":{"reporter":"Field \'reporter\' cannot be set. It
is not on the appropriate screen, or unknown."}}'
my payload is:
payload = {
"fields": {
"reporter":{
"name":args['reporter']
}
}
Here is my PUT request:
update_bug_response = requests.put(update_bug_URL, data=json.dumps(payload),headers=api_head,verify=False)
update_bug_URL = "https://MYURL/rest/api/2/issue/"+issue_key
api_head = { "Content-Type": "application/json", "Authorization": args['authString']}
do we have any solution for this other than "Modify Reporter" permission. please suggest me.
Hello @Revati Pati
Make sure the field "reporter" is part of the "Edit screen" for the issue which you are trying to update. Apart from the modify reporter permissions, the field itself has to be part of the edit screen only then it can be updated.
@Tarun Sapra Thank you for the quick reply.
I really don't know how to verify whether the given field is part of edit screen or not. Can you please tell how do we make sure a field is part of a screen?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Tarun Sapra Oops..my mistake..i realized later that i dont have permission to edit the reporter field, i verified it manually on the JIRA board. Thanks a lot @Tarun Sapra for the help/clarification.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome @Revati Pati !
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.