How to Auto Share Request Upon Creation to All/Selected Technicians

How to Auto Share Request Upon Creation to All/Selected Technicians

NOTE:  This script is supported only for builds below 11.3

This post describes the use of a python script to share requests to technicians specified in a list variable in the script, which can be generated from an SQL query. This script can be configured under Request custom triggers and you will find more information about this here.

This is based on an existing script linked here - link and has been uploaded for this specific scenario to shorten the time required by others to modify the script upon requirement.

The script can be also configured on 'Request custom menu' so that the action can be invoked when it is required. You can find more information about this feature in the link available here.

Use Case:
There might be scenarios where a request must be viewable by all technicians but not editable. In such a case, we can not provide them view access using User > Roles as it will also provide them edit options based on other roles that they might have for their tickets. Therefore, as a workaround, the ticket can be shared using an API key of a tech with role only to view to view request. The script will use the share request option using an API key of tech who has only view access to share requests to all other technicians.

Execution steps:
1. Download and copy the script file into the \Manageengine\ServiceDesk\integration directory.
2. Update the API URL used to access ServiceDesk and the technician API key with only view privilege.
3. Configure the script under the  Admin >> Custom Triggers like shown below.
      Executor >> python3 Share_request_to_all_tech.py $WORKORDERID




A short guide on setting up python is available here.








                  New to ADSelfService Plus?

                    • Related Articles

                    • Script to Auto share request

                      1. Download MSP_share_Request.zip from the attachment, extract it, and paste the same under ManageEngine\ServiceDesk Plus MSP\integrations\Custom_scripts.          # auto_share_MSP.py      # functions.py      # configuration.json 2. ...
                    • How to auto share requests to groups specified in the request tasks.

                      This post described the use of a python script to share requests to groups specified in the tasks that are associated with a request.This script can be configured under Request custom triggers and you will find more information about this here. This ...
                    • How to auto share request to users specified in a request field (V3)

                      Note: ServiceDesk Plus build should be  11.0 and above This post described the use of a python script to share requests to users specified in a request field. This script can be configured under Request custom triggers and you will find more ...
                    • Script to auto-populate the task owner field with the technician who created the request

                      REQUIREMENT: When a technician creates a request and a task is added under the request, the task owner should be the same technician. TESTED IN: Builds 14503 (Postgres) STEPS: 1) Under "Admin" > "Task Custom Functions," create a new custom function ...
                    • Technician Auto-Assign vs. Business Rule

                      If you have selected the option All requests under Tech Auto-assign then even if the Business rule sets a technician, tech auto-assign will reset the technician value. However, when Tech Auto-assign is set as an Unassigned request, Technician ...