Hello. I am unable to add a project role to a filter via Jira REST API with the following:
POST /rest/api/2/filter/{filterID}/permission
{
"type": "project_role",
"projectId": 10003,
"projectRoleId" : 10002,
"view": true,
"edit": false
}
The API return with the following error:
{
"errorMessages": [
"Invalid type given. Should be one of [PROJECT, GROUP, PROJECT_ROLE, GLOBAL, AUTHENTICATED, USER]"
],
"errors": {}
}
I've tried both upper and lower case "project_role" with no avail. Is this an issue with my JSON format or a Jira bug? I've tried this on v7.12.3 and v7.13.1. Thanks.