Hi All,
Can anyone help me out with a way to copy all the users from one role to another for all the Jira Projects?
I have created a new role and want to copy all the users from an already created role to this one. This is required for all the Projects in our instance.
Currently, there are 250+ projects and that's why I needed a way of automation doing it.
If any more information needed, kindly let me know.
BR,
Gaurav
Hi @Gaurav Arora ,
You can use one of our app to do this, JIRA CLI
You can add users to different roles in different projects. One of the CLI actions to do this is
--action addProjectRole
Please review more on this page
Thanks,
Amith Mathur
Hello Amith,
Thanks for the reply.
I am checking this plugin currently as a trial version.
Could you please be more generous and share an example to copy the users to the new role.
I am new to using this plugin and this is a priority requirement for us. I would very much appreciate it if you could help us out here.
Thanks,
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Gaurav Arora ,
Sorry about the delay. Somehow, I missed it.
You can use the action, addProjectRole, to add the users to new role. If you want to get the list then you can use the other action, getProjectRoleList.
All the actions are listed in this examples page.
We also have some more how to articles on this page.
Let me know if you are still facing the issue.
Thanks,
Amith Mathur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No worries.
I have written a python script for this now using the APIs to set the project role users.
BR,
Gaurav Arora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.