How to show UI action in only one catalog item?

snserge
Kilo Contributor

Hi guys,

I have a UI action which does its job well, but only problem is that it shows in every tasks. I want it to only show in one service catalog item task. is that possible?

The UI Action

find_real_file.png

The task where it should only be shown

find_real_file.png

1 ACCEPTED SOLUTION

Hi Serge,



Pass sys_id instead of item name as Item field on Request item table is a reference field.



current.request_item.cat_item == 'sys_id_of_item'


View solution in original post

8 REPLIES 8

Hi Serge,



Use:


current.request_item.cat_item == 'catalog_item_name'


Jaspal,


I have entered this condition:


current.request_item.cat_item == 'Loaner items' || current.state < 3 && current.approval != 'requested'


I still see the button in all tasks regardless of the catalog items


Loaner items is the catalog item name


Hi Serge,



Pass sys_id instead of item name as Item field on Request item table is a reference field.



current.request_item.cat_item == 'sys_id_of_item'


Thank you Jaspal!