Advanced Reference Qualifier on Service Catalog Item

LaurenceT
Tera Contributor

Hi there,

 

I'm currently working on a catalog item that includes a reference variable called "Requested_by" (sys_user), and another called "Asset" (alm_hardware). I'm trying to make it so the "Asset" variable only displays hardware assets that have an assigned to value, which is the same as the "Requested_by" variable.

 

I've tried the following advanced reference qualifier, but I'm having no luck.

 

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

 

I'm aiming to have the "Asset" variable only display hardware assets that are assigned to the user specified in the "Requested by" variable.

 

Thanks,

Laurence

11 REPLIES 11

I just checked, and I am. Just an update, the variable is "requested_for". See my attached config screenshots. I am not sure what is at play here, but I assume there's some other configuration issue/bug going on that is affecting this reference qualifier from working.2.png

 

1.png

Juhi Poddar
Kilo Patron

Hello @LaurenceT 

The reference qualifier script looks good to me. I’d suggest checking the alm_hardware table directly to verify if the expected records are visible in the list view for the selected "Requested For" user.

One quick question: Are you seeing all records, or are you not seeing any records at all in the Asset variable?

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar