How to hide Add button on Affected CI's related List based on Change request state and loggedinuser

Tejal Zete1
Tera Contributor

How to hide Add button on Affected CI's related List based on Change request state and logged in user Role.

 

TejalZete1_0-1681134721436.png

 

 

 

4 REPLIES 4

AnveshKumar M
Tera Sage
Tera Sage

Hi @Tejal Zete1 ,

You can add conditions you want to the OOB UI Action with sys_id 77688cfe6f35f100e5f2b3312e3ee4e6.

AnveshKumarM_0-1681135172496.png

 

 

Thanks,

Anvesh

Thanks,
Anvesh

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

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

Thanks,
Anvesh

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