Skip to content

Commit 1cb3a25

Browse files
committedApr 23, 2021
fixed issue #74
1 parent 6f96086 commit 1cb3a25

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎index.js

+10
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ async function create(vm) {
183183
});
184184
}
185185

186+
// if the bypassrules are on, then use the issue.sender.user.name value for the person
187+
// who created the issue
188+
if (vm.env.bypassRules) {
189+
patchDocument.push({
190+
op: "add",
191+
path: "/fields/System.CreatedBy",
192+
value: vm.user,
193+
});
194+
}
195+
186196
let authHandler = azdev.getPersonalAccessTokenHandler(vm.env.adoToken);
187197
let connection = new azdev.WebApi(vm.env.orgUrl, authHandler);
188198
let client = await connection.getWorkItemTrackingApi();

0 commit comments

Comments
 (0)
Please sign in to comment.