How to display only Incidents on My Request Widget

Mahesh23
Mega Sage

Hi,

OOTB My Request widget display both requests and incident but my requirement is to show Incidents and requests separately.

Like create 2 new widget similar to OOTB My Request widget

1. My Request [show only Requests]

2.My Incident [show only Incidents]

how to achieve this ?

find_real_file.png

regards,

Mahesh

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can hide the tables which you don't want from this configuration

Catalog Administration -> My Request filter module -> Set the table as Active = False

find_real_file.png

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@Mahesh

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Pelo Ntwampe
Mega Sage

Hi @mahe,
I wonder if this query was eventually answered for what you wanted to achieve.

 

1. My Request [show only Requests]

2. My Incident [show only Incidents]

- Clone the OOTB My Requests widget to create your custom widgets.
- Update the new widgets' server script with an encoded query for the My Request Filters you will be using for Incidents and Requests after the active query as per below:
addEncodedQuery.png

 


- Update the Body HTML template for your new My Incidents widget and replace "request" with "incident".


Sorted.

Thank you.

Hi @Mahesh23 ,

 

Did you resolved your query because we have received the same implementation request, we need to create one more widget and show only incidents on it

Let me know the steps if you followed to achieve this.

 

thanks in advance