Hello, I'm setting up a Project creation automation (which is already working), but in the Permission Scheme creation part, I'm taking the error below when I try to use the "Project Role" type:
HTTP response error body: {"errorMessages": ["Can not deserialize instance of java.lang.String out of START_OBJECT token \ n at [Source: org.apache.catalina.connector.CoyoteInputStream@4f8f6be0; line: 5, column: 38] (through reference chain: com.atlassian.jira.rest.api.permission.PermissionSchemeBean [\ "permissions \"] -> com.atlassian.jira.rest.api.permission.PermissionGrantBean [\ "holder \"] -> com.atlassian. jira.rest.api.permission.PermissionHolderBean [\ "type \"]) "]}
This automation is being done by Plugin Automation and this is the only part that is not working, follow the code of the Scheme of permission:
{
"permissions": [
{
"holder": {
"parameter": "Administrators",
"type": {
"projectRole": "10002"
}
},
"permission": "ADMINISTER_PROJECTS"
}
],
"name": "{{ProjectKey}} - Permission Scheme"
}
Can someone help me?