Get Query Fileds
Name
get_query_fields
Description
Gets query fields for work items. [API reference]
Parameters
Parameter | Label | Required | Options | Description | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Project | Project Name | YES | The Name of the project. | |||||||
Query | Wiql Query | YES | The WIQL query (refer Azure DevOps Help to learn Wiql syntax. [API reference] | |||||||
Team | Team Id or Name | NO | Id or name of the team associated with the query. | |||||||
TimePrecision | Use time precision | NO |
|
Whether or not to use time precision. |
Output Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description |
---|---|---|---|---|---|
Name |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
|
ReferenceName |
DT_WSTR
|
nvarchar(4000)
|
4000 | False |
If the column you are looking for is missing, consider customizing Azure DevOps Connector.
Input Columns
Label | Data Type (SSIS) | Data Type (SQL) | Length | Raw | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. |
Examples
SSIS
Use Azure DevOps Connector in API Source component to read data or in API Destination component to read/write data:
Get Query Fileds using API Source
Azure DevOps
Get Query Fileds

Get Query Fileds using API Destination
Azure DevOps
Get Query Fileds

ODBC application
Use these SQL queries in your ODBC application data source:
Get query fileds
SELECT * FROM get_query_fields
WITH
(
"Project" = 'abcd-1234-project',
"Query" = 'SELECT * FROM WorkItems Order By [System.Id] DESC'
)
SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get query fileds
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_query_fields
WITH
(
"Project" = ''abcd-1234-project'',
"Query" = ''SELECT * FROM WorkItems Order By [System.Id] DESC''
)';
EXEC (@MyQuery) AT [LS_TO_AZURE_DEVOPS_IN_GATEWAY];