WorkItemUpdater icon indicating copy to clipboard operation
WorkItemUpdater copied to clipboard

Cannot find shared query when Query is selected as WI source

Open takis-kapas opened this issue 1 year ago • 1 comments

When the "Query" option is selected as Work Item source, I am selecting a Shared Query for its WIs to be updated. In the Build definition, I am able to select the Shared Query, but when the Build Task executes, it always returns warning "Could not find query <queryID>. As a result, that Build Task does not fail the Pipeline, but the Work Items are not getting updated. See screenshots below:

Build Pipeline Definition image

Build Pipeline Execution Warning image

Shared Query used in the Pipeline Task image

Shared Query Run Results image

Shared Query Folder Permissions for Build Service account image

takis-kapas avatar Nov 14 '23 15:11 takis-kapas

  1. Open your project settings (where your CI/CD pipelines are located in)
  2. In overview tab you'll have the name of your project. Copy the name.
  3. Add that "name + Build Service" as the user to shared queries folder. "Project Collection Build Service (Organisation)" isn't enough.

onuromer avatar Jan 13 '24 16:01 onuromer