I'm trying to update a field in an issue over REST API from ServiceNow. But I always get "Method failed" Error when I drop a Put request. POST requests work. Anybody know what I am doing wrong?
I am also getting the same issue, what type of permissions do I need to check. Please help me with this
As mentioned above - to edit an issue, you need edit permission.
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.
Hello Nithish,
Exactly, what permission is required to update issue in JIRA through rest api
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The user needs "Edit" rights to update it.
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.
I tried your suggestion, still, I'm getting the same error. I will check with Jira team that fields are on the edit screen or not.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jira team told that all fields are available on the edit screen. Is there anything like user permission to update the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Thomas,
It worked now. The issue is with permissions. The user in Jira has no permission to update.
Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you please post the method for examination? Cloud or Server?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Thomas,
Here is the error message and there are some more custom fields. This works when I create an issue in Jira.
{"errorMessages":[],"errors":{"summary":"Field 'summary' cannot be set. It is not on the appropriate screen, or unknown."
It is Server.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the JSON response. Can you please post the request?
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @nithishgunda,
first, the POST with this API call is not allowed. Use GET for read issue, PUT for update issue and DELETE to remove. You can do a POST /rest/api/2/issue to create a news issue.
I executed the command with your JSON payload. I had to modify it to fit my custom field:
{"fields":{"customfield_10100":"some value","description":"some text","priority":{"id":"4"},"summary":"new summary"}}
It worked for me perfect. While adding an unknown custom field id, I got the error message that you posted.
This message means, either the custom field id is unknown or the custom field is not set in the screen in Jira, that is used when editing the issue.
Over the API you can only edit fields, that are also visible to the same user in the UI.
My advice, make that upper call only with one of the custom fields to figure out which one causes the problem.
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, Thomas,
I used different API and successfully created an issue in Jira from ServiceNow. Now I need to update that issue by using PUT while doing that I'm getting an error saying that fields are not on the screen but the fields are on the screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @nithishgunda,
I completely got you - otherwise I wouldn't be able to write that upper detailed reply.
For sure there is somewhere an error on your side.
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @nithishgunda,
best you check your API calls with the same user you access the UI. The permission to modify fields/custom fields are:
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear @nithishgunda,
thanks for this feed-back. You discovered a potential improvement of the API. The error message was misleading - it would be better to say "The user has not the permission to update this issue". I will care about that.
If you find this conversation helpful for others, please mark my response as "Accepted".
Many Thanks
Thomas
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.