Reference qualifier of a Catalog variable to show Assets assigned to the user is not working in the service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 02:06 AM
We have a catalog item where "Computer Name" is a variable which refers to cmdb_ci_computer table. We have the reference qualifier to get only those non-retired asset which are assigned to the user. It is working fine inside the application- User is able to see all the assets assigned to him- but it is NOT working in the Service Portal- Its showing "No Matches Found" in service portal.
javascript:'hardware_status!=retired^assigned_to='+current.variables.username
Please NOTE- When we impersonate a user and check in service portal its showing the computers assigned to him. But when he log in and check is not listing the computers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-10-2019 02:19 AM
Hi Krishna,
Try using script include in advanced reference qualifier.
Glide your cmdb_ci_computer table and write query as you specified in question and fetch all the non-retired assets at client side.
Please mark correct/helpful if it solves your issue.
Regards,
Sushant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2020 03:09 PM
This was a very helpful article.
"I changed this back to a reference field and added the following:
Variable attributes: ref_qual_elements=current.variables.requested_for
Ref qual: javascript: 'assigned_to='+current.variables.requested_for
Worked fine!"
Please list and Helpful it helped:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2020 03:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2020 12:17 PM