How to modify Ticket Form in Service Portal according to Incident State

Arnab20
Kilo Contributor

Hello,

I want to hide the box to add comments on an incident from Service Portal if any incident state is resolved or closed.

Please let me know how to achieve this.

find_real_file.png

1 ACCEPTED SOLUTION

Abhishek Pidwa
Kilo Guru

Hi Arnab, 

 

You can definitely do this by modifying the HTML script and server side script of your widget . (OOB Widget Name: Ticket Conversations). here are the steps:

 

1) Open your server side code and write code like this there:

find_real_file.png

Note : Change the value of the state to reflect the value of CLosed/Resolved in your instance. I am setting writable to false and then using that in HTML code to use ng-if

 

2) Open your HTML code and do the following :

 

find_real_file.png

 

Once you do this and change the state to Resolved then you will see screen like this :

 

find_real_file.png

 

Hit me up if you have any questions. beware this widget will affect other functionalities too. If you are using the same widget for Change, Requests then it will hide the conversations from that also. Narrow it down to only incidents if you want that way. Else you should be good to go man.

 

Please mark this answer as correct/helpful if this solves your problem.

View solution in original post

1 REPLY 1

Abhishek Pidwa
Kilo Guru

Hi Arnab, 

 

You can definitely do this by modifying the HTML script and server side script of your widget . (OOB Widget Name: Ticket Conversations). here are the steps:

 

1) Open your server side code and write code like this there:

find_real_file.png

Note : Change the value of the state to reflect the value of CLosed/Resolved in your instance. I am setting writable to false and then using that in HTML code to use ng-if

 

2) Open your HTML code and do the following :

 

find_real_file.png

 

Once you do this and change the state to Resolved then you will see screen like this :

 

find_real_file.png

 

Hit me up if you have any questions. beware this widget will affect other functionalities too. If you are using the same widget for Change, Requests then it will hide the conversations from that also. Narrow it down to only incidents if you want that way. Else you should be good to go man.

 

Please mark this answer as correct/helpful if this solves your problem.