Script to update the description field with selective field values.

Script to update the description field with selective field values.

The sample script provided retrieves values from their respective fields and displays them below the description, making it more convenient for viewing.



Navigate to Incident Field and Form rules > On Form Submit 



Modify the below script as per your Requirement 

var old_description_content = $CS.getDescription();
var x = $CS.getText("CATEGORY");
var y = $CS.getText("SUBCATEGORY");
var z = $CS.getText("ITEM");
var a =$CS.getText("URGENCY");
var new_description_content = old_description_content +'<br>'+'<br>'+ '-------------'+'<br>'+'Subcategory: ' + x + '<br>' +  'Category: ' + y + '<br>' + 'Item: ' + z +  '<br>' +  'Urgency: ' + a;
if($CS.isFormSubmit()){
  $CS.setDescription(new_description_content);

                    New to ADSelfService Plus?

                      • Related Articles

                      • Deluge Script to show request attributes in Task Subject / Description from builds: 10600 and 14306

                        Requirement: To show the request field values such as Request Type, Status etc., or the additional field values in the Task subject/description. Use case: When a task is triggered from a request, it should contain the request details (configured) in ...
                      • Additional field values

                        This report helps to find the picklist values in the additional fields. First you need to find the name of the table and the column holding the data, by executing the following SDP query report:  SELECT Tablename, Columnname FROM ColumnAliases WHERE ...
                      • Update Requester from Request Description

                        Use case: When a request is submitted on behalf of a user via email, the request description contains the requester's full name. Script to update the ticket requester accordingly. Tested on builds: 14306,14500. Steps to follow: Go to Admin > Request ...
                      • How to update a request based on certain field values.

                        This post describes the use of a python script to update requests based on values in other fields ,in the same request.This action can be performed using  Custom Triggers. UseCase: There are three Levels setup in the application and there are 2 ...
                      • Script to Update Date additional field (to 3 days) based on priority inside the request

                        In some cases the customer will need to update the date additional field based on priority set inside the request. (Applicable for builds 14300 & above) Please follow the below mentioned steps to configure: First Download and extract the attached zip ...