Task Short Description same as RITM Short Description

Burhan Shah
Tera Contributor

Hello Community,

 

How can we set a RITM variable description automatically to task short description? They are currently different and I want to set them the same. RITM & Task Description should be the same.

 

I have attached a picture for your reference.

1 ACCEPTED SOLUTION

palanikumar
Giga Sage

Hi,

You have two options:

1) In flow, you can set the short description of task with the short description variable while creating he catalog task

2) Create BR on Catalog task. and use the below code to set short description

current.short_description = current.parent.variables.short_description

 

Thank you,

Palani

Thank you,
Palani

View solution in original post

6 REPLIES 6

Community Alums
Not applicable

Hi @Burhan Shah ,

 

You can set the task short description to variable value at the time of creation itself.

 

In flow designer, use "get catalog variables" action to get catalog variable values

Sai149_0-1716977393445.png

 

When creating the task use "data pill"(second box) to set the value to your variable value

Sai149_1-1716977401653.png

 

If my answer helped you in any way, please mark it as helpful or correct.

 

Dnyaneshwaree
Mega Sage

Hi @Burhan Shah,

1. If you are using flow then, solution provided by @Community Alums will suitable for you.
2.f you want to use BR then solution provided by @palanikumar will suitable for you. I have added some modification in logic according to your requirement. If required, you can use it:

current.short_description = current.parent.variables.description;

                                          Or
You can Create BR on RITM and use below logic and update as per your field and variable names:

 var scTask = new GlideRecord('sc_task');
            scTask.addQuery('parent', req); // map as per your requirement
            scTask.query();
            if (!scTask.next()) {
             scTask.short_description = current.variables.description;
                scTask.update();
            }


Please mark it as helpful or correct, if this solution is helped you in any way.

Thanks In Advance!!




Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru