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.jira.bc.group.search.GroupPickerSearchService
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;
Dear @Rutuja Pawal ,
it seems that you question is better placed at https://community.developer.atlassian.com/.
Could you be so kind to reopen it there?
So long
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.