- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 09:27 AM
I have a requirement to create a relationship and add it to the tabs on user profile. This will enable the user to be able to see which related records a user has from the user record so this will allow us to view related tickets when we identify the user's name.
View a Related List to the User Profile that shows the users related RITM, REQ , INC record. Screenshot below.
I did created the relationship on the task table but unable to display RITM,REQ and INC where caller and requested for is the user.
This was my relationship script:
(function refineQuery(current, parent) {
current.addQuery('sys_id', parent.request_item);
})(current, parent);
Solved! Go to Solution.
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 12:00 PM - edited ‎05-09-2024 12:01 PM
Try this:
(function refineQuery(current, parent) {
current.addEncodedQuery('opened_by='+parent.sys_id+'^numberSTARTSWITHRITM^ORnumberSTARTSWITHREQ^ORnumberSTARTSWITHINC');
})(current, parent);
End result:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-09-2024 12:00 PM - edited ‎05-09-2024 12:01 PM
Try this:
(function refineQuery(current, parent) {
current.addEncodedQuery('opened_by='+parent.sys_id+'^numberSTARTSWITHRITM^ORnumberSTARTSWITHREQ^ORnumberSTARTSWITHINC');
})(current, parent);
End result: