- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 08:19 AM
I have a scripted URL as the following:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 05:44 PM
Hi @chrisshellhamme - Try like this:
var service = grTS.getValue('cmdb_ci_service');
var baseUrl = window.location.protocol + '//' + window.location.host + '/rm_story_list.do?sysparm_query=';
var query = 'cmdb_ci=' + encodeURIComponent(service) + '^active=true';
var url = baseUrl + encodeURIComponent(query);
window.open(url, '_blank', 'width=800,height=600');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 08:21 AM
@chrisshellhamme, try using %3D to replace = when adding queries.
/rm_story_list.do?sysparm_query=cmdb_ci%3D' + grTS.cmdb_ci_service + '^active%3Dtrue';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 08:33 AM
@Jake Sadler thanks for your reply.
It renders exactly the same:
/rm_story_list.do?sysparm_query=cmdb_ci%3Df6d8ba836f0ee2006a17d5267b3ee4cb%5Eactive%3Dtrue
and the page is not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2024 01:09 AM
Hi @chrisshellhamme,
When I create the query using the filter condition builder and click copy url I get this:
/rm_story_list.do/?sysparm_query=sys_class_name%3Drm_story%5Eactive%3Dtrue&sysparm_view=scrum
Try doing the same with your table and insert the values.
This video will help:
https://www.youtube.com/watch?v=spWJe-icus0&list=PL3rNcyAiDYK0YSpjWwmwqcAi2-TriC3-V&index=5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2024 05:44 PM
Hi @chrisshellhamme - Try like this:
var service = grTS.getValue('cmdb_ci_service');
var baseUrl = window.location.protocol + '//' + window.location.host + '/rm_story_list.do?sysparm_query=';
var query = 'cmdb_ci=' + encodeURIComponent(service) + '^active=true';
var url = baseUrl + encodeURIComponent(query);
window.open(url, '_blank', 'width=800,height=600');