In my instance I can update the assignee in the UI, but If I use the API call it gives me a 403 response. I have developer access to the project. Does anyone know why it would block me only via the API?
API call:
PUT https://{jira-api}.com/rest/api/2/issue/{issueid}/assignee
data '{
"name": "null"
}'
response:
{
"errorMessages": [
"You do not have the permission to see the specified issue."
],
"errors": {}
}
Hi
The user you use with the API is not the same you are using in the UI and both of you do not have the same access or you do not have access to the issue in JIRA.
You can use key instead ID to make sure there is no mistake and you are reaching the issue you are expecting.
I am using the same account for both the UI and the API call, which is why the permission is confusing. and I did try both the key and the ID separately but I got a 403 both times
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you add the following hearders to your request ?
"Content-Type", "application/json"
"Accept", "application/json"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What is the response if you do a GET of the same issue using the API ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And for this one ?
GET https://{jira-api}.com/rest/api/2/issue/{issueid}
Removing /assignee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you write {jira-api}, you mean your jira instance base url ?
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.