WorkItemUpdater icon indicating copy to clipboard operation
WorkItemUpdater copied to clipboard

workitem updater: using query throwing TypeError: Cannot read property 'forEach' of undefined

Open SamAtGitH opened this issue 1 year ago • 2 comments

Hi Blue Basher, I'm trying to update a query but upon running the pipeline, it is throwing a 'cannot read property 'forEach' of undefined' error. Am I missing some config? The service account can update the values of this query when done manually.

Please advise. Many Thanks.

2023-10-20T02:33:19.7964612Z ##[section]Starting: WorkItem Updater 2023-10-20T02:33:19.8840249Z ============================================================================== 2023-10-20T02:33:19.8841003Z Task : WorkItem Updater 2023-10-20T02:33:19.8841271Z Description : This task adds functionality to update WorkItems during a Build or Release. 2023-10-20T02:33:19.8841476Z Version : 3.0.74 2023-10-20T02:33:19.8841690Z Author : Blue Basher 2023-10-20T02:33:19.8842032Z Help : 2023-10-20T02:33:19.8842130Z ============================================================================== 2023-10-20T02:33:21.3404680Z Using Query as WorkItem Source 2023-10-20T02:33:21.3432114Z ##[error]TypeError: Cannot read property 'forEach' of undefined 2023-10-20T02:33:21.3472471Z ##[section]Finishing: WorkItem Updater

image

SamAtGitH avatar Oct 20 '23 03:10 SamAtGitH

Did you ever figure out how to resolve this? I'm getting this error now. @SamAtGitH

Mord3 avatar Apr 01 '24 19:04 Mord3

@BlueBasher @SamAtGitH Looks like error stems from the Query's result items, when I try to use a query OTHER THAN a flat list of work items (such as a tree of work items or work items and direct links) then this error pops up. But when I do use a flat list of work items, with even the same work items, this error goes away and everything runs smoothly. It'd be nice if the workitem updater supported more Query types other than just a flat list.

Mord3 avatar Apr 03 '24 19:04 Mord3