We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f96086 commit 1cb3a25Copy full SHA for 1cb3a25
index.js
@@ -183,6 +183,16 @@ async function create(vm) {
183
});
184
}
185
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
+
196
let authHandler = azdev.getPersonalAccessTokenHandler(vm.env.adoToken);
197
let connection = new azdev.WebApi(vm.env.orgUrl, authHandler);
198
let client = await connection.getWorkItemTrackingApi();
0 commit comments