How to populate the Short Description from the Catalog Item to a Catalog Task Short Description.

Tony Williams1
Mega Guru

Currently, the "Short Description" field on the Catalog Task is being populated via the workflow Activity.

TonyWilliams1_0-1682957899152.png

The problem is, if I use the same workflow for multiple Catalog Items the Short descriptions are all the same.

 

How can I have the Short description in the Catalog Task match the short description from the Catalog Item as it does for the RITM short description?

 

1 ACCEPTED SOLUTION

Tony Williams1
Mega Guru

That was it!  thanks for your patients.

 

View solution in original post

9 REPLIES 9

So, It looks like I worded my inquiry wrong.

I need to populate the RTIM Catalog Item to the Service Catalog Task Short description field.  This way I can use the same workflow for multiple Service Catalog Items that don't have the same Short description.

 

I understand what you are looking for.  The below is all the Advanced Script should have in it. Just the one line just the way it is and nothing else and it should work.

 

task.setValue("short_description", current.cat_item.short_description);

 

It's still not working.  It populates the Short description from the Task variable.

TonyWilliams1_0-1683127665682.png

If I remove the Short description value & just use the script the short description in the Task is blank.

TonyWilliams1_1-1683127744540.png

 

 

It did not work because you did not enter the script just how I typed it.  You need to enter it just like I typed it.  No other characters.  You keep leaving in the // which indicates a comment.

 

Tony Williams1
Mega Guru

That was it!  thanks for your patients.