WorkItemUpdater
WorkItemUpdater copied to clipboard
Cannot find shared query when Query is selected as WI source
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
Build Pipeline Execution Warning
Shared Query used in the Pipeline Task
Shared Query Run Results
Shared Query Folder Permissions for Build Service account
- Open your project settings (where your CI/CD pipelines are located in)
- In overview tab you'll have the name of your project. Copy the name.
- Add that "name + Build Service" as the user to shared queries folder. "Project Collection Build Service (Organisation)" isn't enough.