Query on UI Action

Joshuu
Kilo Sage

Hi All,

 

There is an UI action as 'Propose Major Incident' which is a context menu on the incident form.

 

So this should be visible to the following people.

1) Service Desk group members

2) IT Operations group members

3) Current assignment group members and that group's manager from the incident

 

I have added the below condition in the ui action but the 'IT Operations' and the 'Service desk' groups members are able to propose the major incident even if the incident is already proposed. They are able to see that option('Propose Major Incident' context menu) even if the incident is proposed which should not happen.

 

&& (gs.getUser().isMemberOf(current.assignment_group.toString())) && (gs.getUser().current.assignment_group.manager) || gs.getUser().isMemberOf('IT Operations') || gs.getUser().isMemberOf('Service Desk')

 

Please assist and correct me if I am wrong.

 

Thanks & Regards.

 

1 ACCEPTED SOLUTION

Peter Bodelier
Giga Sage

Hi @Joshuu 

 

Use this:

(gs.getUser().isMemberOf(current.assignment_group.toString()) || (gs.getUser().current.assignment_group.manager) || gs.getUser().isMemberOf('IT Operations') || gs.getUser().isMemberOf('Service Desk')) && (current.major_incident_state != 'proposed' && current.major_incident_state != 'accepted')

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

View solution in original post

2 REPLIES 2

Peter Bodelier
Giga Sage

Hi @Joshuu 

 

Use this:

(gs.getUser().isMemberOf(current.assignment_group.toString()) || (gs.getUser().current.assignment_group.manager) || gs.getUser().isMemberOf('IT Operations') || gs.getUser().isMemberOf('Service Desk')) && (current.major_incident_state != 'proposed' && current.major_incident_state != 'accepted')

Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

Hi @Peter Bodelier ,

 

This condition is working before our instance upgrade and now we have recently upgraded to Vancouver. Everyone is able to see the propose major incident ui action button irrespectvie of this condition.

 

Please assist me on this. How to proceed further.

 

Thanks & Regards.