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 ADManager Plus?

                    New to ADSelfService Plus?

                      • Related Articles

                      • 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.  ...
                      • Technician group

                        This report is used to get the associated groups of the technicians. SELECT AaaUser.FIRST_NAME "FullName", (SDOrganization.NAME) "Site", (qd.queuename) "Group" FROM AaaUser LEFT JOIN UserDepartment ON AaaUser.USER_ID=UserDepartment.USERID LEFT JOIN ...
                      • Add notes when a technician is assigned

                        Requirement: Automatically add note in the ticket and consider it as a first response when a ticket is initially assigned to a technician. Steps to configure: Goto Admin > Developer Space > Request Custom Functions > Global function > New > Paste the ...
                      • Technician change from history

                        This report is used to find who changed the Technician and how many technician handled the request.  To make any changes to a query, refer to the KB article below. ...
                      • Request First Assigned time

                        First Assigned Time is the number of minutes, hours, or days between when a customer submits a support ticket and when was a support representative assigned to the Request. It indicates how long it is in an unassigned state.  To make any changes to a ...