Remove drag and drop for kanban board

kchadwick
Tera Expert

How can the drag and drop functionality for the kanban board be disabled? There are several problems with allowing users to simply drag and drop tasks. Creating business rules and data policies is becoming too difficult to manage for locking down this board without affecting OOB functionality.

 

For example, right now users can drag and drop approval tasks in future phases into open to get approvals faster when they havent completed an earlier phase. However, if you try to block this when you cancel a release the tasks wont cancel due to teh same policy. Trying to balance all of these different rules would be easier to just turn off drag and drop on the kanban board.

1 ACCEPTED SOLUTION

Sai Teja1
ServiceNow Employee

Hi @kchadwick 

 

You could disable the drag and drop by navigating to the UI Builder page for Release Execution.

 

UIB Page: {instance}/now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/8699e66f43e2211092fef6be5bb8f2ca/8e99e66f43e2211092fef6be5bb8f2a3/params/is-headless-viewport/true/parent-screen-id/44c7e2a743e2211092fef6be5bb8f288/parent-element-id/viewport_vyr

 

Steps: Click on 'Task kanban board' component from the left content tree and then disable the 'Card drag and drop option' property on the right side. Check the attached screenshot for reference.

 

View solution in original post

7 REPLIES 7

Release tasks editor | UI Builder
This is the new place to do this in Brazil if someone stumbles on this record. You find the "task kanban board" on the left "Content" panel. Then on the right panel that appears after clicking that content you will expand the "Cards basic configuration" and uncheck "Allow dragging cards"

Sai Teja1
ServiceNow Employee

Hello @kchadwick , below is the updated direct link. Attached a screenshot as well.
Updated link: /now/builder/ui/edit/experience/fe72c9ef43012110509fb18afab8f2b6/a1f41e93ff1772106803ffffffffff1a/61f41e93ff1772106803ffffffffff37/params/is-headless-viewport/true/parent-screen-id/44c7e2a743e2211092fef6be5bb8f288/parent-element-id/viewport_vyr

Itallo Brandão
Tera Guru

Hi @kchadwick ,

You are absolutely right to point out the context!

Since the original post didn't specify whether you were using the Classic Visual Task Boards or the modern Workspace (UI Builder), we ended up providing solutions for both eras of ServiceNow.

  • Scenario A (Workspace/UI Builder): As @Sai Teja1  correctly identified, if you are in the Digital Product Release Workspace, the checkbox in UI Builder is the native and easiest way to turn this off. Definitely use his solution for the UI!

  • Scenario B (Classic UI/Data Integrity): My suggestion regarding the Business Rule is still relevant as a "Backend Safety Net". Disabling the drag-and-drop in the UI prevents the visual action, but users could still potentially change the state via the List View or Form View. The Business Rule prevents the illegal transition regardless of where the user attempts it.


Recommendation:
Please apply Sai's solution to fix the UI experience immediately. If you find users are still bypassing the process via List Edits, consider implementing the Business Rule logic I shared as a secondary enforcement.

 

Best regards, Brandão.