- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 10:49 AM
Hi All,
I'm currently running into some difficulties and would appreciate some insight. I created a new module that returns
a list of records(ticket forms) that are assigned to the current user logged into the instance. The module will list the
records if the following conditions are true:
1. If the checkbox "Ready for QA" is checked on the ticket
2. If the value of 'Assigned To' on the form is equal to that of the person currently logged into the instance.
I was able to create the module and get it to return forms that have "Ready for QA" checked. However I am unable
to figure out the script to put into the Assigned To filter so that the module only displays tickets that have "Ready for
QA" check AND are assigned to the current user of the instance.
I believe I would need to input something like javascript:"sys_id==gs.getUserID()", or something along those lines. However
I can't seem to get the Assigned To condition working. I'm returning to Service Now development after a long break so please
forgive me if the script is simple.
Here's an image so that it may be easier to understand where I'm stuck
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 11:01 AM
Assigned To is javascript:gs.getUserID()
Also, javascript:getMyAssignments()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 11:01 AM
javascript:gs.getUserID() should work for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 12:04 PM
Ah, so I was close after all. Thanks for the detailed response!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2016 11:03 AM
You need to use : javascript:gs.getUserID()