How to hide Add button on Affected CI's related List based on Change request state and loggedinuser
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 06:53 AM
How to hide Add button on Affected CI's related List based on Change request state and logged in user Role.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 06:59 AM
Hi @Tejal Zete1 ,
You can add conditions you want to the OOB UI Action with sys_id 77688cfe6f35f100e5f2b3312e3ee4e6.
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 10:47 AM
Hi Anvesh,
Already in that ui action :- (RP.isManyToMany() && current.canCreate()&& parent.active ==true&&gs.getProperty('com.snc.task.associate_ci').indexOf(parent.sys_class_name) > -1)||gs.hasRole('Problem Manager')&&parent.u_srt_held==true this condtion mentioned where can I attcled condition here by using && or any other way os there.
I already tried using && and added conditon it didnt worked.
Regards,
Tejal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2023 06:16 PM
Hi @Tejal Zete1 ,
Yes you should use either && or || . If it didn't work, please check the condition. Or let me know your condition requirements.
Thanks,
Anvesh
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2023 12:54 AM - edited 04-11-2023 12:55 AM
Hi Anvesh,
Already below conditions are there by but I want to add condition like when change status is '-3' and logged in user is not change manager the it should hide the Add button on affected CI related list
(RP.isManyToMany() && current.canCreate()&& parent.active ==true&&gs.getProperty('com.snc.task.associate_ci').indexOf(parent.sys_class_name) > -1)||gs.hasRole('Problem Manager')&&parent.u_srt_held==true&&parent.incident_state==7
I tried to append here the conditions but it didnt worked for me can you please help me in this.
Regards,
Tejal