How to restrict technician from being assigned with new tickets when he has 10 open tickets in his queue already

How to restrict technician from being assigned with new tickets when he has 10 open tickets in his queue already

Usecase:
If a technician has 10 open tickets assigned to him already, the new upcoming requests should not be assigned to him.  New tickets can be assigned only on completing the pending tickets.  In Business Rules, under execute script action we can invoke a Python script to negate this operation.

Requirements:
2. functions.py: This package consists of all the functions that are used to handle the standard requirements of the customer.  Most repeated requirements are written as separate functions.  Depending on our use case, we can include these functions in our script. 
3. configuration.json: This file maintains the configuration details of the installed server.  
 
Execution Steps:
1.  Extract the ZIP file under ..\ManageEngine\Servicedesk\integration\custom_scripts - folder.
2.  Edit the configuration.json and update the values.
3.  For BR Scripts:  Go to Admin > Business Rules > give a rule name> Action: Execute script > "py negate_technician_count.py $COMPLETE_V3_JSON_FILE" and set the criteria as "Status=Open"

Business Rule:







                  New to ADSelfService Plus?

                    • Related Articles

                    • Query to show tickets first assigned today irrespective of created date

                      MSSQL: SELECT wo.WORKORDERID "Request ID", max(aau.FIRST_NAME) "Requester", max(dpt.DEPTNAME) "Department", max(wo.TITLE) "Subject", max(qd.QUEUENAME)"Group", max(ti.FIRST_NAME) "Technician", max(std.STATUSNAME) "Request Status", ...
                    • Query to show the number of days, the tickets are open_PGSQL

                      select wo.WORKORDERID"Request ID", qd.QUEUENAME "Group", aau.FIRST_NAME "Requester", wo.TITLE "Subject", ti.FIRST_NAME "Technician", sdo.NAME "Site", LONGTODATE(wo.CREATEDTIME) "Created Time", round(extract(epoch from(now()::TIMESTAMP - ...
                    • Query to show first assigned and re-assigned ticket irrespective of the created date ( MSSQL)

                      Tested in build MSSQL (14306) MSSQL: SELECT wo.WORKORDERID "Request ID", max(aau.FIRST_NAME) "Requester", max(dpt.DEPTNAME) "Department", max(wo.TITLE) "Subject", max(qd.QUEUENAME)"Group", max(ti.FIRST_NAME) "Technician", max(std.STATUSNAME) "Request ...
                    • Query to get the Request First Assigned time

                      Use case: First Assigned Time is the number of minutes, hours, or days between when a requester submits a request and when was a support representative assigned to the Request. It indicates how long it is in an unassigned state. Working on Build: ...
                    • Request violated by technician

                      This report used to find the technician who violated the request. If the request/incident already has a violation and is reassigned to another technician the new technician assumes the violation instead of the technician that the violation occurred.  ...