hello,
i am currently developing a Jira plugin,i want to create a permission scheme via REST,i can assign all the permissions except the Manage Sprints permission,can you please tell me how i can achieve that via REST calls.
thanks.
Hello @Aymen Maamri
Thank you for reaching out.
In order to set the Manage Sprints permission when creating your Permission scheme via REST API, you can follow the example displayed here, using the parameter MANAGE_SPRINTS_PERMISSION to update it as you need:
curl --request POST \
--url '/rest/api/3/permissionscheme' \
--user 'email@example.com:' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"permissions": [
{
"holder": {
"parameter": "jira-core-users",
"type": "group"
},
"permission": "MANAGE_SPRINTS_PERMISSION"
}
],
"name": "Example permission scheme",
"description": "description"
}'
Additionally, I would like to kindly mention that we have the Atlassian Developer Community to properly address development questions:
https://community.developer.atlassian.com/
The mentioned portal was specifically created for development questions, where you will find articles and suggestions from third-party partners and Atlassian developers that will give you more instructions about plugin development.
Let us know if you have any questions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.