- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 11:45 AM
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
The task where it should only be shown
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:42 PM
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'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:28 PM
Hi Serge,
Use:
current.request_item.cat_item == 'catalog_item_name'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:36 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:42 PM
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'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:48 PM
Thank you Jaspal!