Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Is there any way to manage "onclick" event on task card in dispatcher workspace?

Fer Ortiz
Tera Contributor

Hi all.

As part of a FSM implementation, we have a requirement to manage action performed by dispatcher workspace when a user clicks a card in panel task card.

 

Basically, we need to replicate "Go to assignment window" functionality, but instead of do it by clicking contextual menu -> "Go to assignment window", user wants to do it with a simple click on the card.

Fernxndo_0-1711391507210.png

Is this possible? What configuration do i have to do/modify?

 

 

Thanks in advance.

1 ACCEPTED SOLUTION

James Chun
Kilo Patron

Hi @Fer Ortiz,

 

I am not familiar with the FSM workspace but you can add an event to a component that would trigger a certain action.

JamesChun_0-1711395645832.png

If you struggle with setting this up, can you share the name of the Workspace page and its screenshot? Then I can look into it further.

 

Cheers

 

View solution in original post

2 REPLIES 2

James Chun
Kilo Patron

Hi @Fer Ortiz,

 

I am not familiar with the FSM workspace but you can add an event to a component that would trigger a certain action.

JamesChun_0-1711395645832.png

If you struggle with setting this up, can you share the name of the Workspace page and its screenshot? Then I can look into it further.

 

Cheers

 

Fer Ortiz
Tera Contributor

Hi @James Chun. I was using CSM/FMS Configurable dispatcher workspace.

For future reference, I was able to find card configuration in UI Builder, then I just added a new OnClick event and associated a custom client script.

FerMtz_0-1712073497002.png

In this case "Fsm card selected" event is the equivalent for onclick.