Show request attributes in Task Subject / Description

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 the Subject/Description of the task. This will enable to task technician to quickly view the request information in the task.

Please follow the below steps. 
  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 integration key in the script. 
    1. You can get the integration key under Admin > Integrations > Integration Key > New
    2. Please use an integration key with admin privilege, as there wont be any role related permission issues. 

    3. Update the integration key in the global function.

  3. Goto Admin > Task Custom Functions > Global function > New > Paste the content from the attachment  (3. global_function14.txt) and save it with a name. Modify the return type and the parameter as in the attached screenshot. (4. global_function14 configuration)

  4. Goto Admin > Task Custom Functions > Global function > New > Paste the content from the attachment  global_function15.txt and save it with a name. Modify the return type, parameter, and the global function name in the attached screenshot.(6. global_function15 configuration)

  5. Go to Admin --> Task Custom Functions. Create a new function.
    1. Refer to the attached script. (7. taskupdate_deluge.txt.)
    2. Modify the global functions in the script.
    3. Refer to the attached screenshot. (8. taskupdate_deluge configuration)

  6. Update the task template as in the attached screenshot. (9. Task template configuration). There should be a space before and after the variable.

  7. Configure Task custom trigger as in the attached screenshot. (10. Task Custom trigger configuration)



                  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 ...
                    • Query to show Request and associated task details (PGSQL & MSSQL)

                      Tested in build PGSQL (14300) and MSSQL (14306) PGSQL & MSSQL: SELECT wo.WORKORDERID AS "Request ID", aau.FIRST_NAME AS "Requester", wo.TITLE AS "Subject", pd.PRIORITYNAME AS "Priority", cd.CATEGORYNAME AS "Category", scd.NAME AS "Subcategory", ...
                    • Notify task owner when a task is deleted using Deluge

                      Requirement: Send Email notification to task owner when a task is deleted from a request. Steps to follow: Go to Admin > Developer Space > Task Custom Functions. Create a new function. Refer to the attached script. (NotifyTaskOwner.txt.) Update the ...
                    • Query to show both task comments and worklog comments ( MSSQL )

                      Tested in MSSQL build (14306) SELECT "taskdet"."TASKID" AS "Task ID", "taskdet"."TASKID" AS "Task ID", "wotask"."WORKORDERID" AS "RequestID", cd.CATEGORYNAME AS "Request Category", "taskgroup"."QUEUENAME" AS "Group", "taskowner"."FIRST_NAME" 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 ...