Skip to content

Commit 7aa2c80

Browse files
committed
print out relations
1 parent 8f465dd commit 7aa2c80

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/update-low-priority.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
with:
1919
script: |
2020
const azdev = require('azure-devops-node-api')
21-
21+
22+
// Get the ADO client
2223
try {
2324
const orgUrl = "https://dev.azure.com/microsoft";
2425
const adoAuthHandler = azdev.getPersonalAccessTokenHandler(process.env.ado_token);
@@ -30,5 +31,10 @@ jobs:
3031
return;
3132
}
3233
34+
// Querying Lastest Work Items
3335
const queryResult = await adoClient.queryById(process.env.query_id);
34-
console.log(queryResult);
36+
37+
for (const workItem of queryResult.workItems) {
38+
const workItemDetails = await adoClient.getWorkItem(workItem.id);
39+
console.log(workItemDetails.relations);
40+
}

0 commit comments

Comments
 (0)