Checklist's in Agent Workspace Task

Joe Weisiger
Giga Expert

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

8 REPLIES 8

Peter Bodelier
Giga Sage

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:

find_real_file.png

 

Hope this helps!

Kind regards,

Peter


Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.

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'
});
}

find_real_file.png

 

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!

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!

Joe Weisiger
Giga Expert

Hi Peter,

Thank you for posting this!  I will give it a try and let you know how it goes.

Best,

Joe