Assign issues automatically based on workload

Assign issues automatically based on workload

We've encountered an issue exporting this macro. Please try exporting again later.

This function returns the user in the group that has the least number of issues
the function takes a group name as an input parameter.

To invoke, you'd script like this:

string user = getUserLeastIssues("auto-assign-users");

Script

string username; int countIssues; string [] groupUsers; string [] groups = {argv[0]}; groupUsers = usersInGroups(groups); for(string u in groupUsers) { string jql = "project = EX 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;

Need support? Create a request with our support team.

Copyright © 2005 - 2026 Appfire | All rights reserved.