How can I show 'Related Requests' on a Ticket

nortonxnorris
Giga Expert

Similar to Incidents -'Show Related Incidents' icon, I would like to have one to 'Show Related Requests' on the requested items.

1 ACCEPTED SOLUTION

tltoulson
Kilo Sage

Hi Norton,



Take a look at the UI Macro called user_show_incidents.   If you look at the caller field dictionary entry, you will see in the Attributes field a line like this: ref_contributions=user_show_incidents.   The Reference Contributions statement is telling ServiceNow to add user_show_incidents UI Macro to the Caller field as a reference contribution (the icon and associated behavior that you see).



If you copy that Macro, call it user_show_requests, change the macro to pull requests instead, and add user_show_requests to the reference contribution string (ref_contributions=user_show_incidents;user_show_requests) you should see the desired result.



Please let me know if you need additional assistance.



Kind regards,



Travis Toulson


View solution in original post

11 REPLIES 11

How would you do this in helsinki , looking at the UI macro I do not see where I can update the field you mentioned.


Hi Travis,

 

I know this was a while ago, but i was wondering the same thing as Norton.

 

How exactly would one edit the UI macro to pull requested items (in my case) instead of Incidents? The ref_contributions i understand, it's just making the button show requested items that i can't quite get my head around.

 

Thanks in advance!

 

Maymun