Reference

Endpoint Get Query Fileds


Name

get_query_fields

Description

Gets query fields for work items. [API reference]

Parameters

Parameter Required Options
Name: Project

Label: Project Name

The Name of the project.
YES
Name: Query

Label: Wiql Query

The WIQL query (refer Azure DevOps Help to learn Wiql syntax.
YES
Name: Team

Label: Team Id or Name

Id or name of the team associated with the query.
Name: TimePrecision

Label: Use time precision

Whether or not to use time precision.
Option Value
false false
true true

Output Columns

Label Data Type (SSIS) Data Type (SQL) Length Description
Name DT_WSTR nvarchar(4000) 4000
ReferenceName DT_WSTR nvarchar(4000) 4000
If the column you are looking for is missing, consider customizing Azure DevOps Connector.

Input Columns

Label Data Type (SSIS) Data Type (SQL) Length 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 or in API Destination SSIS Data Flow components to read or write data.

API Source

API Source - Azure DevOps
Azure DevOps Connector can be used to integrate Azure DevOps data in your App / BI Tools. You can create, read, query, modify, and delete WorkItems, Projects, Teams and more.
Azure DevOps
Get Query Fileds
Required Parameters
Project Name Fill-in the parameter...
Wiql Query Fill-in the parameter...
Optional Parameters
Team Id or Name
Use time precision
Filter $.columns[*]
SSIS API Source - Read from table or endpoint

API Destination

API Destination - Azure DevOps
Azure DevOps Connector can be used to integrate Azure DevOps data in your App / BI Tools. You can create, read, query, modify, and delete WorkItems, Projects, Teams and more.
Azure DevOps
Get Query Fileds
Required Parameters
Project Name Fill-in the parameter...
Wiql Query Fill-in the parameter...
Optional Parameters
Team Id or Name
Use time precision
Filter $.columns[*]
SSIS API Destination - Access table or endpoint

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];