We have a user group that we initially set up as a default memeber to a specific project role. Every project that uses this role now has the user group associated with the project.
We have now removed the user group from the project role, so any new projects being created will not have the user group associated with it.
Is there a way to remove the user group from the project role in all the existing projects in bulk?
You can do this with a Jelly script:
<JiraJelly xmlns:jira="jelly:com.atlassian.jira.jelly.enterprise.JiraTagLib" xmlns:core="jelly:core" xmlns:log="jelly:log"> <core:invokeStatic className="com.atlassian.jira.ComponentManager" method="getInstance" var="componentManager"/> <core:invoke on="${componentManager}" method="getProjectManager" var="projectManager"/> <core:invoke on="${projectManager}" method="getProjectObjects" var="projects"/> <core:forEach var="project" items="${projects}"> <log:warn>Removing group 'jira-users' from role ID:10000 from project key: ${project.key}</log:warn> <jira:RemoveActorsFromProjectRole projectroleid="10000" actors="jira-users" projectkey="${project.key}" actortype="atlassian-group-role-actor"/> </core:forEach> </JiraJelly>
Thank you George.
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.