Add "Show Related Incidents" to New Call form

Steven Parker
Giga Sage

So I've added the reference to the below UI Macro on the New Call form in the Caller field.   This is the related incidents UI Macro used on the Incident form.   On the New Call form, it pops up and show the Related Incidents, but it shows it for ALL callers and not just the Caller on the New Call form.   Now, I think this is because on the Incident form the Caller field has a value of 'caller_id' and on the New Call form the Caller field is 'caller'.

How can I modify the below UI Macro to work on the New Call form?   I will obviously use Insert and stay to make a copy of this current macro and modify it for the New Call form.

find_real_file.png


Please mark this response as correct and/or helpful if it assisted you with your question.
Steven
5 REPLIES 5

If I try to do the same thing for the Configuration Item field, it seems to work for the CI field, but then breaks the UI Macro for the Caller field.



Can you not have 2 UI Macros on the same form?



EDIT:



The function had to be renamed for the 2nd UI Macro.   Once I added 'CI' to the middle of the Function names (in 2 places) then it worked fine.



Please mark this response as correct and/or helpful if it assisted you with your question.
Steven