We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f465dd commit 7aa2c80Copy full SHA for 7aa2c80
1 file changed
.github/workflows/update-low-priority.yml
@@ -18,7 +18,8 @@ jobs:
18
with:
19
script: |
20
const azdev = require('azure-devops-node-api')
21
-
+
22
+ // Get the ADO client
23
try {
24
const orgUrl = "https://dev.azure.com/microsoft";
25
const adoAuthHandler = azdev.getPersonalAccessTokenHandler(process.env.ado_token);
@@ -30,5 +31,10 @@ jobs:
30
31
return;
32
}
33
34
+ // Querying Lastest Work Items
35
const queryResult = await adoClient.queryById(process.env.query_id);
- 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