Update Change Impact based on Selected Assets Business impact value

Update Change Impact based on Selected Assets Business impact value

This requirement includes 3 global functions, 1 change custom action and 1 change custom trigger.

 

Step 1: getConfiguration Global Function

 

1) Go to Admin ->  change custom function -> global function-> Add new --> Mention function name and Return Type as Map (Refer below screenshot)

2) Copy the content from getConfiguration.txt file and paste it inside custom function

3) Replace servername,port with SDP Hosted URL and Technician key

4) Save the global function, Edit the saved function and note it down the global functionId (In the screenshot the global function id is global_function_7)

 

 

 

 

 

Step 2: getImpact Global Function

 

1) Go to Admin ->  Change Custom Function -> global function-> Add new --> Mention function name and Return Type as Map (Refer below screenshot)

2) Add 2 parameters ciid,helpdeskID under parameters section as shown in the below screenshot

3) Copy the content from  getAssetImpact.txt file and past it inside custom function

4) Replace global_function_7 with the global functionId that saved in Step 1: getConfiguration Global Function

5) Replace the business_impact_udf_name field name value and save the global function

we can get the udf id of business impact attribute from this query
select attributeid from attributes where attribute='ae.cmdb.base.businessImpact'

For example if the attributeid is 100000001, we have to replace
business_impact_udf_name = "udf_pickref_100000001"

 

6) Edit the saved function and note it down the global functionId (In the screenshot the global function id is global_function_5)

 

 

 

 Step 3: updateChangeImpact Global Function

 

1) Go to Admin ->  change custom function -> global function-> Add new --> Mention function name and Return Type as Map (Refer below screenshot)

2) Add 3 parameters change_id, impact_id,helpdeskID under parameters section as shown in the below screenshot

3) Copy the content from updateChangeImpact.txt  and past it inside custom function

4) Replace global_function_7 with the global functionId that saved in the  Step 1: getConfiguration Global Function and save the global function

 

 

 

 

Step 4 : updateChangeImpactFromAssetImpact change custom function

 

1) Go to Admin ->  Change Custom Function -> Custom actions -> Add new

2) Copy the content from updateChangeImpactFromAssetImpact.txt file , and past it inside custom function

3) Update impact_preference list starting with the lowest preference to the highest preference

For example

impact_preference = ["Low","Medium","Normal","High","Highest"]

4) Replace global_function_5 with the global functionId that saved in Step 2: getAssetImpact Global Function

5) Replace global_function_4 with the global functionId that saved in Step 3: updateChangeImpact Global Function

6) Save the global function

 

 

 


Step 5 : Configuring Change Custom Trigger for updating the Change Impact

 

1)Go To Admin-> Change Custom Triggers -> add new

2) Select Execution the action value and Criteria

3) Under Perform Action select Action Type as Execute Custom Functions and Script file to run as the Function that under in Step 4 : updateChangeImpactFromAssetImpact change custom function

4) Save the trigger

 

 

 

5. Now create a Change with some assets selected and Save the change, If the Change Custom Trigger criteria is matched that created in Step 5, Change impact value will be updated with the highest preference of selected asset business impact value

 

For Example : 3 assets selected

machine1 --> Low Business Impact

machine2 --> Normal Business Impact

machine3 --> Highest Business Impact

Once change is created with above three assets change impact value is updated as Highest


                  New to ADSelfService Plus?

                    • Related Articles

                    • Change Risk Assessment Questionnaire using Custom module - Implementation steps

                      We’re excited to share a step-by-step guide( Attached) on implementing a Change Risk Assessment Questionnaire in ServiceDesk Plus using the Custom Module feature. This solution leverages Custom Modules, Change Additional Fields, and Field & Form ...
                    • Script to Update Fields in Change Template Based on Category

                      Requirement : Implementer, UAT Owner, Reviewer, Change Approver, Line Manager, and Change Owner should be updated based on the change category selected. Steps : 1. Stop the product. 2. Take a backup of the application . 3. Navigate to the ...
                    • How to assign CAB members to a change request automatically.

                      Note:  Attached script will not work beyond 11138 SDP Version. ​ This is a sample script to add CAB Members to a Change Request through Change Custom Triggers.The CAB Members can only be added manually to the Change Request ,under the Approval Tab, ...
                    • Update Change Roles based on Support Group

                      Requirement: Set Change Approver based on Support group selected Steps to configure: Download the attached scripts. Navigate to Admin > Developer Space > Change Custom Function. Copy and paste the content of the attached file ...
                    • When will the Assets get duplicated ?

                      Please find the possible scenarios when the machines are renamed with _old Scenario 1: When the workstations are swapped in the network. Consider two workstations, MACHINE-A with service tag ST-1 and MACHINE-B with ST-2. Both the workstations are ...