Skip to content

Commit a4e8b62

Browse files
committed
add the project ot the query
1 parent ca9f776 commit a4e8b62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ado-importer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function getExistingWorkItems(adoQueryClient, adoClient, adoOrg, adoProjec
229229
try {
230230
const url = `/${encodedOrg}/${encodedProject}/_apis/wit/wiql?api-version=${apiVersion}`;
231231
const query = {
232-
query: "SELECT [System.Id], [System.Title], [System.State], [System.Tags], [System.ChangedDate] FROM WorkItems WHERE [System.Tags] Contains 'Veracode' ORDER BY [System.ChangedDate] DESC"
232+
query: `SELECT [System.Id], [System.Title], [System.State], [System.Tags], [System.ChangedDate] FROM WorkItems WHERE [System.Tags] Contains 'Veracode' AND [System.TeamProject] = '${adoProject}' ORDER BY [System.ChangedDate] DESC`
233233
};
234234

235235
if (debug === 'true') {

0 commit comments

Comments
 (0)