diff --git a/src/pcards.ts b/src/pcards.ts index 6a595d8..7eca19b 100644 --- a/src/pcards.ts +++ b/src/pcards.ts @@ -4,6 +4,7 @@ import Q = require("q"); const userStoryTemplate = require("./templates/user-story.handlebars"); const bugTemplate = require("./templates/bug.handlebars"); const taskTemplate = require("./templates/task.handlebars"); +const techDebtTemplate = require("./templates/tech-debt.handlebars"); const extensionContext = VSS.getExtensionContext(); const client = WITClient.getClient(); @@ -52,6 +53,7 @@ const printWorkItems = { let bugCard: any; let userStoryCard: any; let taskCard: any; + let techDebtCard: any; if (page.type === "Bug") { bugCard = bugTemplate({ @@ -79,6 +81,15 @@ const printWorkItems = { }); } + if (page.type === "Technical Debt") { + techDebtCard = techDebtTemplate({ + number: page.id, + title: page.title, + description: page.description, + acceptance_criteria: page.acceptance_criteria + }); + } + if (page.type === "Bug") { workItems.innerHTML += bugCard; } @@ -88,8 +99,11 @@ const printWorkItems = { if (page.type === "Task") { workItems.innerHTML += taskCard; } - if (page.type !== "User Story" && page.type !== "Bug" && page.type !== "Task") { - workItems.innerHTML += "