Task Short Description Field : Unable to change it using script in Service Catalog Item Request Workflow

Henry Steele
Tera Contributor

Hello,

I've done searches regarding this topic and it appears that this shouldn't be something that is as hard as it's been for me.  I have a situation where I want the Short Description for the Task (TASK) ticket that's created to use the Short Description of the Requested Item (RITM).  I've tried the following in the Catalog Task workflow script section: 

1) task.short_description = current.short_description;

2) if(current.cat_item.u_task_short_description){
task.short_description = current.cat_item.u_task_short_description; }

3) sc_task.short_description = current.variables.user.short_description

4) sc_task.short_description = current.variables.short_description

5) sc_task.short_description = current.short_description

When I try to use any of these, I always end up with a TASK that has the generic "Please deploy item to the user" short description and, when viewed, has the message "Hiding Empty Variables" message on top.  There are possibly two issues that I can think may be causing issues:

1) The Short Description field is a required field and is somehow affecting the script from changing it. 

2) The field that i'm trying to grab is used by a portal page to populate the information.  When looking at the history information in the RITM ticket, it shows the following: VARIABLE:short_description: TEST SHORT DESCRIPTION.  Looking at the dictionary information shows sc_task.short_description, Table: task, Field: short_description

I'm sure i'm making a simple mistake somewhere and just need some assistance in pointing it out to me.  

Thank you for the help. 

1 ACCEPTED SOLUTION

Do you have any business rule, which could be overriding the short description?

Can you hard code the short description as

 

task.short_description = 'This is a test';


Please mark this response as correct or helpful if it assisted you with your question.

View solution in original post

4 REPLIES 4

SanjivMeher
Kilo Patron
Kilo Patron

task.short_description = current.short_description; should work fine.

Can you post a screenshot of your RITM highlighting the field you want to be copied to the task short desc?


Please mark this response as correct or helpful if it assisted you with your question.

Thank you for replying.

 

Here is the screenshot of the RITM short description dictionary information:

find_real_file.png

 

Here's a screenshot of the task that's generated from this request and it's short description dictionary information.

find_real_file.png

 

Thank you for the help. 

 

Henry

 

 

Do you have any business rule, which could be overriding the short description?

Can you hard code the short description as

 

task.short_description = 'This is a test';


Please mark this response as correct or helpful if it assisted you with your question.

RobertQuinn
Kilo Contributor

Thanks, just got back from Knowledge 19 in Vegas.  Haven't had time to look at the solution suggested yet.  Will reply after checking it out and provide feedback.