Skip to content

Commit

Permalink
v2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTarantula committed Nov 27, 2018
1 parent 52205f8 commit 3c39b81
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions details.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ Right-click on a query and select `Print All`.

## Changelog

### v2.3.1

* Fixed link when printing to PDF

### v2.3.0

* Added link to work item title (useful for printing to PDF)
Expand Down
2 changes: 1 addition & 1 deletion dist/wiprint.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/wiprint.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"build:dev": "npm run lint && npm run clean && npm run webpack && npm run package:dev",
"webpack": "webpack --progress --colors --config webpack.config.js --output-path ./dist -p",
"postbuild": "npm run package",
"package": "tfx extension create --rev-version",
"package:dev": "tfx extension create --overrides-file vss-extension.dev.json --rev-version",
"package": "tfx extension create",
"package:dev": "tfx extension create --overrides-file vss-extension.dev.json",
"publish": "tfx extension publish",
"gallery-publish": "tfx extension publish --rev-version",
"gallery-publish": "tfx extension publish",
"clean": "rimraf ./dist && rimraf ./*.vsix",
"lint": "tslint -c tslint.json 'src/*.ts'"
},
Expand Down
4 changes: 2 additions & 2 deletions src/wiprint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function getWorkItems(wids: number[]): IPromise<Models.WorkItem[]> {
wids,
undefined,
undefined,
Models.WorkItemExpand.Fields
Models.WorkItemExpand.Links
);
}

Expand Down Expand Up @@ -204,7 +204,7 @@ function prepare(workItems: Models.WorkItem[]) {
allFields: Models.WorkItemField[]
) => {
let insertText =
`<div class="item"><h2><a class="wilink" href="${item.url}">${item.fields["System.WorkItemType"]} ` +
`<div class="item"><h2><a class="wilink" href="${item._links.html.href}">${item.fields["System.WorkItemType"]} ` +
`${item.id} - ${item.fields["System.Title"]}</a></h2>`;
fields.forEach(field => {
const fieldRef = allFields.filter(
Expand Down
1 change: 1 addition & 0 deletions vss-extension.dev.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"id": "wiprint-dev",
"version": "2.3.1",
"name": "DEV Work Item Print",
"public": false
}
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "wiprint",
"version": "2.3.0",
"version": "2.3.1",
"name": "Work Item Print",
"scopes": ["vso.work", "vso.extension.data_write"],
"description": "Print work items from query toolbar or context menu.",
Expand Down

0 comments on commit 3c39b81

Please sign in to comment.