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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Auto-assignment of user from group to issues..

I write code to for the same but still issues is not auto assigned .

can anyone help me out for the same.


import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.crowd.embedded.api.Group

def groupSearch = ComponentAccessor.getComponent(GroupPickerSearchService)
def groupList = groupSearch.findGroups("")
def groupManager = ComponentAccessor.getGroupManager()

for (Group group in groupList)
log.error group.getName().toString()//print group names to log
log.error groupManager.getUsersInGroup(group)//print group members to log

int countIssues;
String username;
String [] groupUser;
String [] groups = {argv[0]};

groupUser = groupManager.getUsersInGroup(group);

for(String u in groupUsers)
String jql = "project= pune AND statusCategory in (\"To Do"\, \"In Progress"\) and assignee = " + u ;
int tempCount = countIssues(jql);

if(isNull(username) || (countIssues> tempCount))
username = u;
countIssues = tempCount;
return username;


1 answer

0 votes
Thomas Deiler Community Leader Feb 07, 2020

Dear @Rutuja Pawal ,

it seems that you question is better placed at

Could you be so kind to reopen it there?

So long


Suggest an answer

Log in or Sign up to answer

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