Customize Task allocation get least work method

  • 2 January 2020
  • 1 reply
  • 4 views

Badge +5

Hi,

 

For the Task Allocation i need to get the User with least Work. In K2 i found system SMO i.e. TaskAllocationRoleMethods which  has Get Least Work Method. But this method takes K2 Role name as a input. My requirement is to send the List of Users , from which the K2 should decide the user with Least work.  Is it possible to connect to any K2 table to create the custom method which will return the user with least work?

 

 


1 reply

Hi Kathija,


 


It seems the Task Allocation Role Method 'GetLeastWork' is designed to have Roles as inputs.  Perhaps you could try using the 'Everyone' role or create a custom role that would contain all possible users that you intend to run this query on.


 


https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#ServiceBrokers/K2TaskAllocation/TaskAllocationService.htm


 


Thanks


 


 

Reply