Custom Scripts - How to automatically create a project from a change using change custom triggers

Custom Scripts - How to automatically create a project from a change using change custom triggers

Hello Users,

Today's post will help you trigger the creation of a project in ServiceDesk Plus, based on values in certain fields of a change request.The project is created using a specific project template and then associated to the parent change request.

This is done by using an API call to create a project is ServiceDesk Plus and a separate call that associated the project to the change request.Refer to the comment within the script for more information on the json structure in which input is provided for both the API calls.The script to do this is available here.

Let us assume a scenario where a project must be created as part of a change process.The answer that is chosen in the field 'Create Project ?' is used to trigger the creation of the Project.If the value is set as 'Yes' , the data from the change will be used to create the project using a specific project template.Once the project is created successfully, it is then associated to the change automatically.

Execution steps:

 

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

 

2.Update the script with the help of the comments that are provided inside the script.

 

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


Below is a screenshot showing a sample custom trigger 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 9300 and above.  


      3. A python library called 'Requests' is necessary to run this script on the application server.


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 post, visit here.


                New to ADManager Plus?

                  New to ADSelfService Plus?