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?
Hi @Andreza Santos welcome on th ecommunity :). I think your JSON is not valid. You should use (I guess) following JSON to specify holder:
"holder":{
"type":"projectRole",
"parameter":"10002"
}
Let me know, if it won't help :), Thank you.
Thanks for the answer. Unfortunately it's still not working, but the error has changed, but I can't identify the error in json.
{"errorMessages":["Unexpected character ('â' (code 226)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n at [Source: org.apache.catalina.connector.CoyoteInputStream@750b4c14; line: 6, column: 18]"]}
{
"permissions": [
{
"holder": {
"parameter": "10002",
"type": “projectRole”
},
"permission": "ADMINISTER_PROJECTS"
}
],
"name": "{{ProjectKey}} - Permission Scheme"
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this characted contained in your ProjectKey?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I checked and that characted is not in ProjectKey, I really don't know what it can be anymore.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I do not know too, but could you share the whole configuration. We might find something :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I really don't know what the problem was, but I redid the json and it worked!
Final result:
{
"permissions": [
{
"holder": {
"parameter": "10002",
"type": "projectRole"
},
"permission": "ADMINISTER_PROJECTS"
}
],
"name": "{{ProjectKey}} - Permission Scheme"
}
Thanks for the help!!
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.