logo

NJP

Visual Task Board unlimited labels [New York]

Import · Sep 06, 2019 · article

Pre-New York

This is how it looks like pre-New York:

image

As you can see, no option for an additional label.

These labels are actually controlled through the vtb_card table, with fields like label_1, label_2, etc.. Unfortunately, we are not able to extend this. It's just not like just adding u_label_8 or something. Just not possible, we also can't access the code for the $vtb.do page.

With New York

This is how it looks like with New York:

image

As you can see, seven default labels are shown, and you have the possibility to add your custom labels. Theoretically: unlimited!

These labels aren't controlled anymore through the Visual Task Board Cards table (vtb_card) (you will still see the fields on that table, though they aren't used anymore: deprecated may be a nice word for it. The labels are now controlled through the VTB Board Labels tabel (which holds the actual labels, and this way theoretically unlimited) and Label Entries tabel (which holds the relationship between the card and the label).

Scripting labels

I've seen some community threads about automating the labels, we also looked at that ourselves for our VTB. Be aware: with New York any scripting on the Visual Task Board Cards tabel label fields will not work anymore! As mentioned the label_1, label_2, etc. fields aren't used anymore. If there's a desire for automating the labels, you would need to look at the VTB Board Labels tabel (vtb_board_label) (which holds the actual labels) and the Label Entries tabel (label_entry) (which holds the relationship between the card and the label).

Here's how the relation looks like.

image

image

---

And that's it actually. Not much to it. Have fun with the unlimited labels image.

Kind regards,

Mark Roethof

ServiceNow Technical Consultant @ Paphos Group---

LinkedIn

Labels:

image

View original source

https://www.servicenow.com/community/developer-articles/visual-task-board-unlimited-labels-new-york/ta-p/2324807