Hi,
I need Jira rest APIs using which I can assign particular project roles to people(users). In Jira rest api documentation I could find some python method but those are assigning project roles to a set of user group. But I need to assign project roles to particular users. Please help me providing the API for that.
Hi, @DIPAYAN GANGULY
If I understood you right - you have to use this merhods:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors/#api-rest-api-3-project-projectidorkey-role-id-post
In body use parameter user, not groupId, like in example.
Hi @DIPAYAN GANGULY Try to following api for adding user in a project role :-
curl --request POST \--url 'https://your-jira-server/rest/api/2/project/{projectIdOrKey}/role/{roleId}' \--user 'username:password' \--header 'Content-Type: application/json' \--data '{"user": ["username"]}'
For JIRA cloud Python and cURL available here :- https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-role-actors/#api-rest-api-3-project-projectidorkey-role-id-put
It looks like you're new here. Sign in or register to get started.