Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Commit

Permalink
Fix work item type color for XML based collections
Browse files Browse the repository at this point in the history
  • Loading branch information
cschleiden committed Aug 30, 2019
1 parent 15e85c4 commit fd1b68a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azure-devops-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "estimate",
"version": "2.2.2",
"version": "2.2.3",
"name": "Estimate",
"description": "Planning Poker in Azure Boards.",
"publisher": "cschleiden",
Expand Down
10 changes: 9 additions & 1 deletion src/services/workItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export class WorkItemService implements IWorkItemService {
return {
name: wi.name,
icon: wi.icon,
color: wi.color,
color: transformColor(wi.color),
estimationFieldRefName
};
});
Expand Down Expand Up @@ -342,3 +342,11 @@ export class WorkItemService implements IWorkItemService {
return "System.Description";
}
}

function transformColor(color: string): string {
if (color && color.length === 8) {
return color.substr(2);
}

return color;
}

0 comments on commit fd1b68a

Please sign in to comment.