Settings
Organize work flow in a visual board
Let's create a new screen for having the Kanban board. Name the new screen as "Kanban Screen".
To make our kanban work properly we need to configure 3 properties:
The Board Data Set
The Items (Options)
The labels

Creating the Board
Your board can be created adpting to your process. We can change features like title, icons and colors of the board. In the snippert below you will find the formula for creating a 4 colum board ("Not Started", "In Progress", "Completed", "Blocked").
id
String
The unique identifier for the board
title
String
The name of the board which is presented at the top
color
String
The color of the text for the title
backgroundColor
String
The background color of the board
icon
String
The icon which is presented next to the title at the top.
enableAdd
Boolean
Determines whether the board supports the option to add new work items to its
ClearCollect(
CollBoards,
{
id: "1",
title: "Not started",
color: "#002050",
backgroundColor: "#ffffff",
icon: "folder-open",
enableAdd: true
},
{
id: "2",
title: "In progress",
color: "#2189d9",
backgroundColor: "#ffffff",
icon: "tasks",
enableAdd: true
},
{
id: "3",
title: "Completed",
color: "#107c10",
backgroundColor: "#ffffff",
icon: "check-circle",
enableAdd: true
},
{
id: "4",
title: "Blocked",
color: "#dfdfdf",
backgroundColor: "#ffffff",
icon: "ban",
enableAdd: true
}
)Your board should be looking like this:

Collecting the items
Usually the data in your board will come from some datasource (e.g. SharePoint, Dataverse, etc.). In our example we are going to get the data from the SharePoint list created on Episode 01. See in the table below the expected JSON schema:
id
string
The unique identifier for the Work Item
title
string
The Title of the Work Item that appears on the card
description
string
The description of the Work Item that appears on the card
AssignedTo
string
The text which will represent who the Work Item is assigned to
labels
string
The tags which are associated with this Work Item
dueDate
Date
The due date of the work item
icon
string
Defines the icon to represent the work item
iconColor
string
Defines the color of the Work Item icon
color
string
Sets the color of the outside border of the card
order
Number
Defines the position of the Work Item on the board
ClearCollect(
collWorkItems,
AddColumns(
RenameColumns(
WorkProgressTracker,
"ID",
"id",
"Title",
"title",
"Description",
"description",
"DueDate",
"dueDate"
),
"boardId",
Switch(ThisRecord.Progress.Value,"Not started", "1", "In progress", "2", "Completed", "3", "Blocked", "4"),
"assignedTo",
ThisRecord.'Assigned to'.DisplayName,
"labels",
Switch(ThisRecord.Priority, "Low", "1", "Medium", "2", "High", "3", "Critical", "4")
)
);Please change the priority column type from choice to Single line of text


Creating Labels

You can use multiple labels to enhance the visual identification of your kanban card. Colors and icons can be used as you you want.
In the following snippet we are creating one label for each priority status
id
string
The unique identifier for label
title
string
The name of the label
color
string
The color of the text for the title
backgroundColor
string
The background color of the label
icon
string
The icon for the label
ClearCollect(
CollLabels,
{
id: "1",
title: "Low",
color: "white",
backgroundColor: "#59405C",
icon: "file"
},
{
id: "2",
title: "Medium",
color: "white",
backgroundColor: "#FA7D09",
icon: "archive"
},
{
id: "3",
title: "High",
color: "white",
backgroundColor: "#B52B65",
icon: "exclamation"
},
{
id: "4",
title: "Critical",
color: "white",
backgroundColor: "#FF82A9",
icon: "skull-crossbones"
}
);
Last updated