/
Assign issues automatically based on workload
Assign issues automatically based on workload
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;
, multiple selections available,
Related content
Assign issues automatically based on workload
Assign issues automatically based on workload
More like this
Assign an issue while maintaining the user load
Assign an issue while maintaining the user load
More like this
Assign an issue while maintaining the user load
Assign an issue while maintaining the user load
More like this
Assign issues to the previous assignee
Assign issues to the previous assignee
Read with this
Assigning an Issue Preserving The User Load
Assigning an Issue Preserving The User Load
More like this
Assign the related issues of the current issue to users in a Project role in Round Robin method
Assign the related issues of the current issue to users in a Project role in Round Robin method
More like this