The CreatorCon Call for Content is officially open! Get started here.

How to set short description for catalog task for the selected job function?

Siva P
Tera Expert

Hi ,

I have catalog item with the filed called request type, it is a choice field we have multiple choices. When user selects some of the choices from the dropdown and clicks order now . Then it will create a RITM and attached with catalog task.

Now i need set the catalog task short description field with some text based on the selected choice for catalog item filed.

Please help me how to achieve this. Thanks in advance.

1 ACCEPTED SOLUTION

Hi Ankur,

I have given filter condition like below but the values which are not storing in worknotes.

 

Script:

var str = '';
if(current.u_actual_effort != '')

str = str + previous.u_actual_effort + ' ';

if(current.u_week_and_month != '')

str = str + previous.u_week_and_month;

current.work_notes = str;
})(current, previous);

View solution in original post

21 REPLIES 21

Thanks Ankur .I will execute this and let you know..

Do remember to mark my answer as Correct & 👍Helpful

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

I have updated code

used previous instead of current as you required old value

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

I have given filter condition like below but the values which are not storing in worknotes.

 

Script:

var str = '';
if(current.u_actual_effort != '')

str = str + previous.u_actual_effort + ' ';

if(current.u_week_and_month != '')

str = str + previous.u_week_and_month;

current.work_notes = str;
})(current, previous);

Hi,

Did you check BR triggered or not?

try adding logs to verify

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader