Allow My Request widget to show request that were opened by me?

Nolan3
Kilo Guru

I am trying to figure out how I can get the My Request widget to show request that were opened by me not just ones that I am the requested for which is the default behavior?

I have one catalog item that all the requests are generated by a coordinator and not the person that the request is for and they need to track the status of these requests.  

If at all possible it would also be great to be able to show the requested for as a secondary variable so these coordinators would be able to quickly identity which user the request is for without clicking into each request.

Would like the requested for to show up in the highlighted area of the widget if possible.  

Appreciate any help or ideas.  Thanks

find_real_file.png

1 ACCEPTED SOLUTION

gr.addEncodedQuery('requested_for=javascript:gs.getUserID()^ORopened_by=javascript:gs.getUserID()');

View solution in original post

8 REPLIES 8

Any ideas on what part in the server script I need to update and what it needs to be changed to as it is not obvious to me.

Thanks

I found the code just not sure how to add opened_by to Query

gr.addEncodedQuery('requested_for=javascript:gs.getUserID()');

 

 

gr.addEncodedQuery('requested_for=javascript:gs.getUserID()^ORopened_by=javascript:gs.getUserID()');

Thank you very much that did it.  Appreciate your help!