The Zurich release has arrived! Interested in new features and functionalities? Click here for more

๐Ÿš€ Agile Card Labels: Automatically Reflect Story Status in the Agile Board

Hanna_G
Kilo Sage

In Agile development within ServiceNow, visibility is key. Our team uses Agile Development and the Agile Board to manage and prioritise work - but manually keeping labels in sync with the story status became a hassle. 

 

To solve this I found this ServiceNow KB: Visual Task Board: a business rule can update the card by adding a label when task is updated - Supp...

Which talked through building a Business Rule that automatically updates labels on VTB cards based on key field values like Priority, Blocked and State. 

 
 

Hanna_G_2-1751908170080.png

 

 

๐Ÿ”ง How It Works:
A business rule that runs on the story table for any creations or updates
This then looks up the related VTB Cards & the values on the story record
Then adds/Removes the corresponding labels that are stored in the label_entry field 

 

๐Ÿ” What I did differently from the KB:
Created system properties to hold the sys_ids of the labels that I wanted to reference so they were not hard coded, and created a loop to update for each one. 
Here is a code snippet to show this for high priority stories:

if (current.priority == 1 && !highPriorityTag.next()) {
    highPriorityTag = new GlideRecord('label_entry');
    highPriorityTag.label = highPriorityLabelSysId;
    highPriorityTag.table = 'vtb_card';
    highPriorityTag.read = 'yes';
    highPriorityTag.title = "High Priority Tag for " + gr.task.number;
    highPriorityTag.table_key = gr.sys_id;
    highPriorityTag.insert();
} else if (current.priority != 1 && highPriorityTag.next()) {
    highPriorityTag.deleteRecord();
}

 

โœ… Results:

After deploying this:

  • The Agile board became a real-time status dashboard

  • Product owners and BA's could immediately identify blocked or test-ready stories

  • Developers had less admin work keeping cards in sync

#agile #vtb 

4 REPLIES 4

Anvin
Tera Expert

 The information may be helpful some, but it would be better to create this as an article instead of a question.

 

Thanks for the feedback @Anvin, I don't have access to create an article, but in the event that I do get access I will change it to an article. Only certain members have access to do so: How to Create, Manage, Edit, and Delete Articles - ServiceNow Community ๐Ÿ˜Š

Frankee
Tera Contributor

Thank you for breaking it down like that - I found it really useful! much appreciated

 

@Frankee - Good to hear, we've found it useful in our team - give it a try and see if it works for you!