Checklist's in Agent Workspace Task

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2020 11:23 AM
Hello,
I just learned that the Checklist Formatter does not show on the task in Agent Workspace. Here is ServiceNow's response:
Details. The 'Checklist' is not showing on Agent Workspace view is because the 'checklist' is a UI-Macro and Agent Workspace does not support macros. That is expected given the fact that Agent Workspace runs mostly on ReactJS, and Jelly is not supported there (macros are Jelly based scripts).Aug 11, 2020
I'm curious if anyone has any recommendations or other alternatives to creating a checklist on a task in Agent Workspace?
Thank you,
Joe
- Labels:
-
Agent Workspace
- 2,353 Views

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2021 01:41 AM
Hi Joe,
I created a UI Action and UI Page in order to show checklists in workspace. Works good enough for us, although the modal might be a bit small for large checklists:
UI Action - Workspace Client Script:
function onClick(g_form) {
g_modal.showFrame({
url: '/checklist_modal.do?sysparm_id=' + g_form.getSysId() + '&sysparm_isWorkspace=true',
title: 'Checklist',
size: 'lg'
});
}
UI Page HTML:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<g:evaluate var="sysparm_id">
var sysparm_id = RP.getParameterValue("sysparm_id");
sysparm_id;
</g:evaluate>
<g:evaluate var="sysparm_isWorkspace">
var sysparm_isWorkspace = RP.getParameterValue("sysparm_isWorkspace");
sysparm_isWorkspace;
</g:evaluate>
<g:evaluate var="jvar_user" object="true" jelly="true">
var current = new GlideRecord("sc_task");
current.get(jelly.sysparm_id);
current;
</g:evaluate>
<g:macro_invoke macro="inline_checklist_macro" />
</j:jelly>
The result:
Hope this helps!
Kind regards,
Peter
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2021 12:04 PM
Thanks for coming up with this! My modal just renders blank. Am I missing something?
function onClick(g_form) {
g_modal.showFrame({
url: '/sn_agent_workspace_checklist_modal.do?sysparm_id=' + g_form.getSysId() + '&sysparm_isWorkspace=true',
title: 'Checklist',
size: 'lg'
});
}
This is still using Jelly and I didn't think Jelly rendered in Workspace at all?
What are your settings on the UI Action?
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2021 12:41 PM
Nope, nope, forget what I said. SN didn't like that UI Page in the Workspace scope. Switched it to global and works.
Thanks again!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2021 02:57 PM
Hi Peter,
Thank you for posting this! I will give it a try and let you know how it goes.
Best,
Joe