How to place VTB(Visual Task Board) on Dashboard
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2019 10:32 AM
Hi Team,
I want to display a visual task board on dashboard.Can you please instruct same
Thanks, Simha
Labels:
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2019 10:49 AM
1. Go to System UI > UI Page > New
Name: vtb_page
XML:
- <?xml version="1.0" encoding="utf-8" ?>
- <j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
- <iframe src="$vtb.do" style="width: 100%; height: 700px;"/>
- </j:jelly>
2. Go to System UI > Widgets > NewName: Visual task Board WidgetScript:
- function sections() {
- return {
- 'Visual Task Boards': {
- 'type': 'vtb_page'
- }
- };
- }
- function render() {
- var scope = gs.getCurrentScopeName();
- scope = (scope == 'rhino.global' ? '' : scope + '_');
- var page = renderer.getPreference('type');
- return renderer.getRenderedPage(scope + page);
- }
- function getEditLink() {
- var scope = gs.getCurrentScopeName();
- scope = (scope == 'rhino.global' ? '' : scope + '_');
- var page = renderer.getPreference('type');
- return "sys_ui_page.do?sysparm_query=name=" + scope + page;
- }
3. Go to any homepage > Add content
4. Search for 'Visual Task boards' then add it to homepage.
Useful documentation for creating and configuring widget script:
Create a widget that displays a ServiceNow UI page
Regards,
Sachin