Skip to content

Commit

Permalink
fixed issue #74
Browse files Browse the repository at this point in the history
  • Loading branch information
danhellem committed Apr 23, 2021
1 parent 6f96086 commit 1cb3a25
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ async function create(vm) {
});
}

// if the bypassrules are on, then use the issue.sender.user.name value for the person
// who created the issue
if (vm.env.bypassRules) {
patchDocument.push({
op: "add",
path: "/fields/System.CreatedBy",
value: vm.user,
});
}

let authHandler = azdev.getPersonalAccessTokenHandler(vm.env.adoToken);
let connection = new azdev.WebApi(vm.env.orgUrl, authHandler);
let client = await connection.getWorkItemTrackingApi();
Expand Down

0 comments on commit 1cb3a25

Please sign in to comment.