UI action button condition
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-20-2024 05:35 AM - edited ‎11-20-2024 05:52 AM
Hello all,
i have below requirement when i want to create a UI Action button in sc task,
Create UI action to create an IMAC as part of Hardware Return Requested Item. This button should be available on SCTasks
Name: Create IMAC
Show as button/link on form
Available when all of the following are true:
1.User is member of Hardware Requests group
2.Itemized List is not empty
3.Itemized List contains configuration item or items of computer class
4.Parent RITM Item is Hardware Return
i have written for 1,2 and 4 points but for 3rd point i need help.
gs.getUser().isMemberOf('hardware_request_group') && current.parent.variables.itemized_list.getRows().length > 0 &&
current.parent.cat_item.name == 'Hardware Return';
Itemized List is a MRVS and configuration_item is refered to cmdb_ci below added screenshot for reference
Please help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 06:32 AM
Hey @shaik17
Actually i did not get your issue please explain me more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 10:36 PM
i need to write condition in ui action for this point below Itemized list is MRVS
Itemized List contains configuration item or items of computer class