Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 2278

Script Master - 8: How to automatically assign users to different roles in a change request.

$
0
0

Change managers often decide who plays different roles in implementing  the change effectively in an IT infrastructure. For a frequently carried out change request, the team involved may be the same. This can be based on the services affected or the change type. As a result, the change manager has to repeatedly assign the same set of technicians for a frequently occurring RFC. This Script Master post will help you do away with repetitive technician assignments and automate the process of adding users to different change roles by using custom scripts.

To do this, submit the role name, the name of the user and their email in a specific json structure. Refer the comments within the script for more information on the json structure and tips to build the script. These users have to be setup in the application either as a requester or a technician.

For the case of this specific script , we are going to set the change owner as the change implementer when the change type is significant. The script to do this can be downloaded here.

Execution steps:

 

1. Copy the script file into the \Manageengine\ServiceDesk\integration directory.

 

2. Update the script with the name of the role along with the name and email address of the users. Make sure you follow the syntax provided in the comments section to make necessary changes.

 

3.Configure the script under the  Admin ->   Custom Triggers. Provide the path of the request json file as the input to the script.

 

Below is a screenshot showing a sample configuration.




Note:

      1. This script was tested on python v3.4.1 - 32 bit and v3.5.1 - 32 bit.

      2. This script will work only in ServiceDesk Plus version 9113 and above. 

To make the best use of this, take a look at the comments in the script and the related post in our resources section.


Trust you find this post useful. In case you've missed the previous posts, visit here. Read through and send your feedback to us as comments on the respective posts. See you next Wednesday with another useful script.


Viewing all articles
Browse latest Browse all 2278

Trending Articles