Advanced Reference Qualifier question

kedler
Kilo Guru

I need to create an Advanced Reference Qualifier. I have service catalog item that asks to select which user is requesting this item (requester field). Once that user is selected, they must select their computer (from cmdb_ci_computer). I want to use the advanced reference qualifier to show only computers assigned to the user. So I need to create a new advanced reference qualifier for the 'user_pc' variable that will be able to use the 'requester'. Can anyone help me with how to do this?

1 ACCEPTED SOLUTION

Chuck Tomasi
Tera Patron

I think Mike is close, but missing the actual variable value. 

 

javascript:'assigned_to="+current.variables.requested_for

 

 

View solution in original post

5 REPLIES 5

Mike Patel
Tera Sage

add something like javascript:"assigned_to="+ current.request.requested_for

if it's field than use above if it's variable thn use below

javascript:"assigned_to="+ current.variables.xxxxxxx

Chuck Tomasi
Tera Patron

I think Mike is close, but missing the actual variable value. 

 

javascript:'assigned_to="+current.variables.requested_for

 

 

Thanks! This is part of a simulator I'm using to learn. It also says 

NOTE Please use this name for your function invoked by the reference qualifier

'filterUserComputer' 

Where does the function come in?

 

That function would come from a script include. If you go to System Definition> Script Includes you should be able to do a search using the filter: Script | contains | filterUserComputer and find the exact record where that function is coming from.