Forums

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

We'd like to consolidate separate groups into a single group. Would anyone have recommendations?

Sjoquist, Carl
Contributor
May 26, 2023

It would seem we can figure out something with the REST api, using groupuserpicker and group operations, but I wanted to check if anyone had a better idea or had something to share?

 

Thanks

Carl

1 answer

1 accepted

2 votes
Answer accepted
Darryl Lee
Community Champion
May 26, 2023

If it were me, I'd grab a copy of Bob Swift's Jira CLI and then run commands that look something like this: 

acli -a runFromUserList --group "Group 1" --common "--action addUserToGroup --userId \"@userKey@\" --group \"Consolidated Group\""

acli -a runFromUserList --group "Group 2"  --common "--action addUserToGroup --userId \"@userKey@\" --group \"Consolidated Group\""

acli -a runFromUserList --group "Group 3"  --common "--action addUserToGroup --userId \"@userKey@\" --group \"Consolidated Group\

(Credit to @Amelie Winkler _Appfire_ for the hint on using the @userId@ replacement variable. But thanks to good old GDPR I think it's probably best to use @userKey@ in case there are duplicate user names.)

Here's some documentation:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events