Update Task description with Request description.

Update Task description with Request description.

Requirement:
Copy the request description content to all the associated task description.

Usecase:
When a task is triggered from a request, it should contain the request description in the description of the task. This will enable task technician to quickly view the request information in the task.

Steps to follow:
  1. Goto Admin > Task Custom Functions > Global function > New > Paste the content from the attachment  1. Global function_5.txt  and save it with a name.
  2. Update the URL and technician key in the script. You can get the technician key under profile in the top right corner. 
    1. Refer to the below link: https://help.servicedeskplus.com/api/rest-api.html$key
    2. Refer to the below screenshot. 

  3. Go to Admin --> Task Custom Functions. Create a new function.
    1. Refer to the attached script. (updateTaskDescription_withRequestDescription.txt.)
    2. Update the global function count in the script as per your instance.
  4. Configure Task custom trigger as in the below screenshot.


          • Related Articles

          • How to automatically create a task in a Change Request.

            This is a sample script to create a task in a Change Request based on the values given in certain fields. This is done by using an API call to create  a task in ServiceDesk Plus. The task can also be created in a request, problem, project or a ...
          • Show request attributes in Task Subject / Description

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

            This report is used to find the task comments and Description. To make any changes to a query, refer to the KB article below. https://pitstop.manageengine.com/support/manageengine/ShowHomePage.do#Solutions/dv/24000633501275 SELECT taskdet.TASKID AS ...
          • Closed request with pending task

            This report is used to get all completed request with the pending task.     To make any changes to a query, refer to the KB article below. https://pitstop.manageengine.com/support/manageengine/ShowHomePage.do#Solutions/dv/24000633501275 SELECT ...
          • How to populate request details on associated tasks.

            This sample script is used to update request field values into tasks associated with request templates The Request details are stored as a JSON Object in a file and its path is provided as input to the Script. This can be used in the application ...