Skip to content

Feature: Add support for queries #1429

@andrwca

Description

@andrwca

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

It would be useful to support creating and maintaining queries. Eventually it would be nice to support adding query based widgets to a dashboard, but for now, they have utility of their own.

New or Affected Resource(s)

  • azuredevops_workitemquery_folder
  • azuredevops_workitemquery

Potential Terraform Configuration

// Create a query folder
resource "azuredevops_workitemquery_folder" "query_folder" {
  project_id  = data.azuredevops_project.project.id
  name        = "Folder 1"
  parent_path = "/Shared Queries"
}

// Create a query
resource "azuredevops_workitemquery" "query" {
  project_id  = data.azuredevops_project.project.id
  name        = "Query 1"
  parent_path = azuredevops_workitemquery_folder.query_folder.path
  wiql        = "SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.AssignedTo] = @Me"
}

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions