Support specifying fields to return alongside WIQL query #1081
kollner
started this conversation in
Backlog of Suggestions
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When calling
list_work_itemswith a WIQL query, any fields included in theSELECTclause beyond the defaults are silently ignored. For example:The
StateChangeDatefield is not returned in the response. The same applies toSystem.AreaPathand likely any other non-default field.Root cause
The Azure DevOps Query By Wiql REST API only returns work item IDs regardless of the
SELECTclause. The MCP then fetches full work item details in a follow-up call, but with a hardcoded field list — so theSELECTfields are never forwarded to the item fetch step.Request
Allow the caller to specify additional fields to include in the follow-up work item fetch, either by:
SELECTclause from the WIQL and forwarding those fields to the batch fetch, orfieldsparameter to the toolImpact
Without this, callers cannot retrieve fields like
StateChangeDateorAreaPathvia a single tool call, forcing multiple round trips or workarounds.Beta Was this translation helpful? Give feedback.
All reactions