UI action button condition

shaik17
Tera Contributor

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

shaik17_0-1732110780041.png

 

shaik17_0-1732110619593.png

 

 

 

Please help me.




2 REPLIES 2

Sanjay191
Tera Sage

Hey @shaik17 

Actually i did not get your issue please explain me more

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