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 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
Hi, @DIPAYAN GANGULY
If I understood you right - you have to use this merhods:
In body use parameter user, not groupId, like in example.
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.