...
Code Block |
---|
language | bash |
---|
title | Find project permissions |
---|
|
curl -u user:password -X GET -H "Content-Type: application/json" http://jira-url/rest/api/2/mypermissions?projectKey=DEMO
|
Code Block |
---|
language | bash |
---|
title | Find issue permissions |
---|
|
curl -u user:password -X GET -H "Content-Type: application/json" http://jira-url/rest/api/2/mypermissions?issueKey=DEMO-1 |
The output returned by the above commands is in JSON format and might contain different permissions for a project and an issue inside this project:
Code Block |
---|
language | bash |
---|
title | Project permission - "true" |
---|
|
"WORK_ON_ISSUES":
{
"description": "Ability to log work done against an issue. Only useful if Time Tracking is turned on.",
"havePermission": true,
"id": "20",
"key": "WORK_ON_ISSUES",
"name": "Work On Issues",
"type": "PROJECT"
} |
Code Block |
---|
language | jsbash |
---|
title | Issue permission - "false" |
---|
|
"WORK_ON_ISSUES": {
"description": "Ability to log work done against an issue. Only useful if Time Tracking is turned on.",
"havePermission": false,
"id": "20",
"key": "WORK_ON_ISSUES",
"name": "Work On Issues",
"type": "PROJECT"
} |
...