Hide 'Close Incident' button based on 'State' == Resolved

Pierre5
Kilo Expert

Dear Community,

I was wondering if someone could help with the following…

We need to hide the ‘Close Incident’ button (affect all users) when the ticket is in a ‘State’ of Resolved. It currently serves no purpose at present, and that confuses some people. incident.[incident]

I’m a novice, so any instructions or advice would need to be perfectly clear. Baby steps would be nice. 🙂

find_real_file.png

 

Your help will be much appreciated.

Kind regards,

 

Pierre

1 ACCEPTED SOLUTION

You will have to put that in the condition as well. 

 

(current.incident_state != '1' && current.incident_state != '7' && current.incident_state != '6') && (gs.hasRole("itil") || gs.hasRole("itil_admin") || current.caller_id == gs.getUserID() || gs.hasRole("admin"))

 

Hope you got the resolution with my help.

Can you mark correct answer to close this thread?

 

Regards,

Omkar Mone

View solution in original post

24 REPLIES 24

Hi Omkar,

Thanks for this, although when I tried, it looked exactly the same, even after logging out and back in.

find_real_file.png

Hi Pierre 

Just for testing can you remove all the conditions and just keep current.incident_state != '6'.

 

Let me know.

 

Regards,

Omkar Mone

Nope... that didn't work either.

My changes are a part of an update set. Would that make a difference?

Does this help?

find_real_file.png