Hello,
I am trying to use the Jira REST API to create issues in the GIM project.
However, all API calls fail:
GET /rest/api/3/project/search returns an empty list.
GET /rest/api/3/mypermissions?projectKey=GIM returns: "Could not find project with the provided key."
POST /rest/api/3/issue returns: "You do not have permission to create issues in this project."
I have confirmed that:
The project is Company-managed.
My user is listed as a Project Administrator.
Could you please assist me in identifying the issue?
Best regards,
Hi @Wellington Batista da Silva ,
Maybe you do not pass the propper credentials.
Could you try to run this in your browser:
https://<yoursite>.atlassian.net/rest/api/3/mypermissions?projectKey=GIM&permissions=BROWSE_PROJECTS,CREATE_ISSUES
It should produce this:
{
"permissions": {
"BROWSE_PROJECTS": {
"id": "10",
"key": "BROWSE_PROJECTS",
"name": "Browse Projects",
"type": "PROJECT",
"description": "Ability to browse projects and the issues within them.",
"havePermission": true
},
"CREATE_ISSUES": {
"id": "11",
"key": "CREATE_ISSUES",
"name": "Create Issues",
"type": "PROJECT",
"description": "Ability to create issues.",
"havePermission": true
}
}
}
HI, @Rudy Holtkamp
With this request, I am getting the following response.
{
"errorMessages": [
"Could not find project with provided key."
],
"errors": {}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Then it seems that you don't have the correct permission for the GIM project.
Like Marc said.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Which permissions do I need to grant to the administrator user, considering that at the portal level I am able to perform all processes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Wellington Batista da Silva
What roles are defined in the permission scheme used by the project?
Check which roles are defined at Browse and Create permission, in case this is a company managed project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Wellington Batista da Silva , if you talk about a portal. I'm assuming you have a service desk project? Is that correct? In that case you need to have a JSM license and have the 'Service desk team' role (if it is a standard permission scheme).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please find attached an image showing how the current permissions are configured.
The project is Company-managed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Wellington Batista da Silva
In the people section of the space settings, are you listed there?
Can you access User Management, find your self and what is your permission on Jira.
Check in space settings, in details of the key is set to GIM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My user is listed in the 'People' section of the space settings.
Yes, please find attached the User Management details.
Space
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Wellington Batista da Silva
What does it say at "Acesso ao aplicativo"?
What are you roles at "Funçoes" at the project access?
If you have a Jira license /rest/api/3/project/search should give you results, if not it's permission issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc -Devoteam-
Thank you very much for all the support, I was able to resolve the issue.
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.
Hi @Marc -Devoteam-
The token scope is incorrect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Wellington Batista da Silva
It seems like the role project administrator has no permissions defined in the permission scheme.
@Rudy Holtkamp provide an option to check this.
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.