The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

update user to project role using script is not working

Prashant Mali
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
November 12, 2019

Hi Team,

we are using script post function on workflow transition in Jira. the use case is to add custom field users to the project role.

but sometimes it is failing. some users are automatically disappearing from the role. I don't know why.

 

Could you please help me proper script which can resolve above issue.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
brbojorque
Community Champion
December 16, 2019

Hi @Prashant Mali ,

I would suggest to look in the Jira Server API.

Sample query would look 

POST - api/2/project/PRO/role/12321 - {"user" : "testuser"}

It is also important that the user already has access to Jira / Service Desk.

POST - api/2/group/user?groupname=jira-servicedesk-users - {"user" : "testuser"}