Repeat incidents

Brian Lancaster
Tera Sage

On our record producer for Incidents we have a reference field where a user can choose from their closed incidents.   It is using an advanced reference qualifier that is showing as javascript:getCallerClosedIncidents().   This was not working and was showing users all incidents in the system.   I went to script includes and could not find getCallerClosedIncidents.   I'm trying to recreate it but I'm not 100% sure how to write the script so the reference only pulls the current callers closed incidents.   Anybody have something similar?

1 ACCEPTED SOLUTION

If you want to do it base on the caller field on the form you cannot use is dynamic me as that will be the logged in user.  You will have to do it with an advanced reference qualifier.

javascript:'caller_id=' + current.variables.caller_id +'^stateIN6,7'

find_real_file.png

View solution in original post

22 REPLIES 22

I don't see any previous incidents on the service portal.

What account are you logged in as?  Have your verified that, that account has incidents in a resolved or closed state?  This works in my PDI.

I'm currently on my DEV instance.Please have a look at the screenshot. I have a catalog item called create incidents and i have created a variable called previous incident.

Yes I understand that but does the account your logged in as have any resolved or closed incidents where they are the caller? 

ok So i tried doing the same in PROD instance and it actually worked. The only problem i see is if i change the caller name the previous incident remains the same every time and shows mine instead of the caller X.