Creates a new project role with no default actors. You can use the Add default actors to project role operation to add default actors to the project role after creating it.
Note that although a new project role is available to all projects upon creation, any default actors that are associated with the project role are not added to projects that existed prior to the role being created.<
Permissions required: Administer Jira global permission.
curl --location -g --request POST 'http:///rest/api/3/role' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "A project role that represents developers in a project",
"name": "Developers"
}'
{"self":"https://your-domain.atlassian.net/rest/api/3/project/MKY/role/10360","name":"Developers","id":10360,"description":"A project role that represents developers in a project"}
【JIRA7.6.1】API开发者 微信交流群
用微信扫右侧二维码,加入【JIRA7.6.1】API开发者 交流群,互助沟通