Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

update user to project role using script is not working

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

0 votes
brbojorque Community Leader Dec 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"}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

65 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you