Adding a VTB to a dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2017 07:51 AM
Is there a way for a user to add an VTB ( visual task boards) to a dashboard? I tried testing this with an IFrame but that did not display nicely. I do not want to configure a CMS page with an IFrame or even get into using CMS. Ideally I would like to be able have the user add his VTB to his own dashboard. Any suggestions?
Jerry
- Labels:
-
User Interface (UI)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2017 08:21 PM
Hi Jerry,
You will find this thread useful
Re: Display Agile Task Planning Board on Homepage or Dashboard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2017 10:57 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2019 03:18 PM
Thank you! this worked perfect on my dashboard.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2019 10:53 PM
Hi Aditya,
This works great. One question. Can it be made so that the user can choose which VTB it loads up automaticly?
Thanks
Flemming