How to add variable in the sctask

nikhitha24
Tera Guru

Hi All,

 

I want to add a variable that need to be visible in the sctask as well.

nikhitha24_0-1707029535141.png

 

I want the variable "Select the asset" need to visible in the sctask.

 

nikhitha24_1-1707029882564.png

 please help me on the above requirement.

1 ACCEPTED SOLUTION

AshishKM
Kilo Patron
Kilo Patron

Hi @nikhitha24 ,

Open the workflow of this catalog item and, checkout the workflow and open the catalog task object ( if only one task otherwise search for correct object ).

In that object, scroll down and check there will be two parallel box with variables name , just shift this variable from left box to right box and update this object .. after update publish the workflow. 

Note : Check if workflow is used or flow designer and if this variable is already added in task then check if any UI Policy Action hiding it on task. 

 

-Thanks,

AshishKm


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

View solution in original post

3 REPLIES 3

KalyaniDeshmukh
Tera Expert

Hi @nikhitha24 

 

If your conditions are very specific and based on certain fields in the table, you might consider having a client script at the table level.

Sample. (you can consider one more condition to check the Catalog Item as well)

var sd = g_form.getValue('short_description');

if(sd == 'Short desc of your SC Task')

{

g_form.setVisible('variables.<variable_name>', true); // your variablename must be like this variables.a , here a is variablename

}

 

Kindly mark the answer ✔️ Correct or Helpful ✔️ If it helps. 

AshishKM
Kilo Patron
Kilo Patron

Hi @nikhitha24 ,

Open the workflow of this catalog item and, checkout the workflow and open the catalog task object ( if only one task otherwise search for correct object ).

In that object, scroll down and check there will be two parallel box with variables name , just shift this variable from left box to right box and update this object .. after update publish the workflow. 

Note : Check if workflow is used or flow designer and if this variable is already added in task then check if any UI Policy Action hiding it on task. 

 

-Thanks,

AshishKm


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @nikhitha24 ,

 

1. Open the catalog item.

2. Create a new catalog UI poilcy from realted list of catalog item.

 

You can create a catalog UI Policy were you have 3 check box called .

 

1. Applies to catalog item view

2. Applies to catalog task (check this box)

3. Applies to requestred Item.

 

 

SohailKhilji_2-1707030773701.png

 

 Apply necessary condition and save... I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect