Scheduled job script that fill out data in catalog item form couldn't pass value to display in task short description

bbf3562
Kilo Guru

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,

find_real_file.png

 

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,

find_real_file.png

 

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?

1 ACCEPTED SOLUTION

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

View solution in original post

6 REPLIES 6

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

Thanks! That worked!