how to populate list of incidents created by an user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 04:25 AM
Hi all,
I have created some variables into catalog item, in those incident list will be one which is of list collector type. I have a requirement that, need to display all the incident numbers which are created by a particular user.
More clear when ever I change the requested_for, that particular user incidents should display.
Can anyone help with to do it.
Thanks in advance,
Sweety.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-28-2022 02:45 PM
Hi,
the code looks ok to me. Make sure the client script UI Type is set to All.
Otherwise - do you get any error or what is happening? The fields are called as in the script? (requested_for, incidents_list)
Add some logging to the script include, e.g. in the while loop, something like:
while (incGR.next()) {
gs.info(incGR.getDisplayValue());
incList.push(incGR.getUniqueValue());
}
to check if you are getting what is expected