Hide the 'Add' UI action on Affected CIs on incident

Tanwir Singh11
Tera Expert

Hi All,

 

I want to hide the 'Add' button on the Affected CIs related list for incident table but only in case when certain CI's are selected on the parent incident. 

I have checked the UI action and the script include in that but not sure how to customize it for my requirement.

 

Please help how to achieve it. 

1 ACCEPTED SOLUTION

Tanwir Singh11
Tera Expert

Hi @arundharmabe,

Yes, we successfully implemented it. Following are the steps:

 

1. We updated the condition for the visibility of 'Add' UI action on the 'Affected CIs' (task_ci) table by adding the condition parent.business_service != 'required value'

2. Then to show the 'Edit' UI Action and on that Edit button we wanted to show only 1 CI Class. For this, we updated the 'List Control' on the Affected CI related list on the incident table as shown in the snippet attached.

 

 

Result: Whenever a certain CI is selected on an incident, the Add button on Affected CI related list gets hidden and Edit CI becomes visible which will only show configuration items from 1 CI class only.

 

Please do mark my answer helpful if this has resolved your query so it can help others.

 

View solution in original post

3 REPLIES 3

arundharmabe
Tera Guru

Hi Tanwir,

Did you implemented any solution for this? I've similar requirement. Can you share the solution which you've implemented.

 

Regards,

Arun

Tanwir Singh11
Tera Expert

Hi @arundharmabe,

Yes, we successfully implemented it. Following are the steps:

 

1. We updated the condition for the visibility of 'Add' UI action on the 'Affected CIs' (task_ci) table by adding the condition parent.business_service != 'required value'

2. Then to show the 'Edit' UI Action and on that Edit button we wanted to show only 1 CI Class. For this, we updated the 'List Control' on the Affected CI related list on the incident table as shown in the snippet attached.

 

 

Result: Whenever a certain CI is selected on an incident, the Add button on Affected CI related list gets hidden and Edit CI becomes visible which will only show configuration items from 1 CI class only.

 

Please do mark my answer helpful if this has resolved your query so it can help others.

 

Hi Tanwir,

 

Did you implemented any solution for this to hide this ADD button in UI action? I've similar requirement. Can you share the solution which you've implemented.