- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 08:49 AM
When I fill out information in catalog item form and then submit, it was able to pass values from catalog item variable to task fields to display value in Short Description and Description like this,
But when I use scheduled job script that execute it by filling information itself in catalog item, it show that it success filling data in catalog item in task requested item variables ticket but it couldn't pass value to display in Short Description and Description that cause blank,
Does anyone know why it show blanks in task description if execute scheduled job script but it show data in task description if I manually fill the data in catalog form?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 10:34 AM
Setting the variables from the scheduled job in that manner is going to happen on the Requested Item and not the task table, which is why the Task Short Description and Description are not populating. You need to set the Task Short Description and Description in the workflow itself and you can reference Requested Item variables to do so.
For example:
task.description = current.variables.group_name (if this is a reference filed add .getDisplayValue() on the end)
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 10:34 AM
Setting the variables from the scheduled job in that manner is going to happen on the Requested Item and not the task table, which is why the Task Short Description and Description are not populating. You need to set the Task Short Description and Description in the workflow itself and you can reference Requested Item variables to do so.
For example:
task.description = current.variables.group_name (if this is a reference filed add .getDisplayValue() on the end)
Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2018 11:58 AM
Thanks! That worked!