Skip to content

Commit 82d4436

Browse files
committed
print attribute
1 parent 0ebbd63 commit 82d4436

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ jobs:
3434
// Querying Lastest Work Items
3535
const queryResult = await adoClient.queryById(process.env.query_id);
3636
37-
for (const workItem of queryResult.workItems) {
38-
const workItemDetails = await adoClient.getWorkItem(workItem.id, null, null, 1);
39-
console.log(workItemDetails);
37+
// Iterate over work items
38+
const workItemsDetails = await adoClient.getWorkItems(queryResult.workItems.map(wi => wi.id), null, null, 1);
39+
40+
for (relations of workItemsDetails[0]){
41+
print(relations.attributes);
4042
}
43+
44+

0 commit comments

Comments
 (0)