Clone My Request Widget not recognizing a new My Request Filter

Colleen1
Tera Contributor

I am new to working with the Widget portion of ServiceNow.  We have a requirement to mimic the current My Request functionality on the portal page to specifically search requests and/or incidents that have the term 'transHUB' in the short description.  I have created a new catalog request item called 'transHUB requests' for many different request items the end user may need (new maintain item and workflow that is all working).  This is an important initiative and expect a good number of requests with this category/topic.  I have cloned the 'My Requests' widget (my-requests-v2) and cloned the My Requests page.  Both called transhub_requests.  I have also added a new menu to the SP Header Menu to have 'transHUB requests' appear in the banner next to 'Tickets'(see below).  I have also created a new 'my request filter', as shown below, to reference this widget and page.  I can get the page to appear when I click on the 'transHUB requests' from the menu selection and displays my page. It appears to be pulling the same logic as in My Requests but I assume that I need to update a script some place but sure where.  But I cannot, and do not honestly know where, to set the query so that it returns only requests and/or incidents with 'transhub' contained in the short description field.  Any direction or assistance here would be appreciated.  Or if there is a better solution out there.  I first tried a Simple List but the user wants to be able to search on these selected incidents/requests so the simple list was not an option, unless I am missing something.

find_real_file.pngHHere is my new My Request Filter:

find_real_file.png

Thank you and any assistance would be greatly appreciated.

 

1 ACCEPTED SOLUTION

Thanks Colleen. 

 

Please mark my answer correct if it is the correct solution.

 

Happy to help !! 

View solution in original post

28 REPLIES 28

Community Alums
Not applicable

Is your Request Filter running on the correct table?

It looks as though the widget is looking at sc_request , but your filter is looking at sc_req_item .

 

Please mark correct if this solves your issue and helpful 👍 if it has assisted you.

Thank you for your input.  I have to use the sc_req_item since that is where the short description holds the name of the catalog item.  Unless you have seen this work with the task table?  It still doesn't work 😞 

Community Alums
Not applicable

If you are looking at sc_req_item , you should be able to query against the catalog item field that was used to create the request in the first place.

find_real_file.png

If you set your condition to look for the specific item type you are creating, and you are still getting additional requests showing up, then we may have to modify code to stop that happening.

 

Please mark correct if this solves your issue and helpful 👍 if it has assisted you.

Gopi22
Giga Guru

Hi Colleen,

The 'My Requests' option available on the header is a Menu Item available OOTB and it contains a widget in the name of 'My Requests'. 

As you mentioned, if you want to make use of similar functionality to display tickets with a particular short description, you need to clone this OOTB widget and make changes on the server script in the cloned widget.

 

Thanks,

Gopi