DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • How to Maximize the Azure Cosmos DB Availability
  • Automating Databases for Modern DevOps Practices: A Guide to Common Patterns and Anti-Patterns for Database Automation Techniques
  • Optimizing Azure DevOps Pipelines With AI and Continuous Integration
  • Strategic Insights Into Azure DevOps: Balancing Advantages and Challenges

Trending

  • Building Scalable and Resilient Data Pipelines With Apache Airflow
  • Microsoft Azure Synapse Analytics: Scaling Hurdles and Limitations
  • Docker Model Runner: Streamlining AI Deployment for Developers
  • Recurrent Workflows With Cloud Native Dapr Jobs
  1. DZone
  2. Data Engineering
  3. Databases
  4. WIQL Editor Extension for Azure DevOps

WIQL Editor Extension for Azure DevOps

Check out one of our favorite add-ins for Azure DevOps — the Work Item Query Language Editor.

By 
Ricci Gian Maria user avatar
Ricci Gian Maria
·
Feb. 19, 19 · Tutorial
Likes (1)
Comment
Save
Tweet
Share
13.2K Views

Join the DZone community and get the full member experience.

Join For Free

one of the nice features of azure devops is extendibility. thanks to the rest api, you can write add-ins or standalone programs that interact with the services. one of the add-ins that i like the most is the work item query language editor , a nice add-in that allows you to interact directly with the underlying syntax of work item query.

once installed, whenever you are in the query editor, you have the ability to directly edit the query with wiql syntax, thanks to the “edit query wiql” menu entry.

wiql query editor

figure 1: wiql query editor new menu entry in action

as you can see in figure 2, there are lots of nice features in this add-in, not only the ability to edit a query directly in wiql syntax.

image

figure 2: wiql editor in action

you can clearly edit and save the query (3) but you can also export the query into a file that will be downloaded into your pc, and you can then re-import in a different team project. this is a nice function if you want to store some typical queries somewhere (source control) then reimport in a different team project, or for a different organization.

if you start editing the query, you will be amazed by the intellisense support (figure 3) that guides you in writing the correct query, and it is really useful because it contains a nice list of all available fields.

image

figure 3: intellisense in action during query editor.

the intellisense seems to actually be using an api to grab a list of all the valid fields because it even suggests custom fields that you used in your customization process. the only drawback is that it lists all the available fields, not only those available in the current team project, but this is a really minor issue.

having intellisense, syntax checking and field suggestion, this add-in is a really must to install in your azure devops instance.

image

figure 4: intellisense is available not only on the default field but also on custom fields used in the custom process.

if you are interested in the editor used, you can find that this add-in uses the monaco editor, another nice piece of open-source software by microsoft.

another super cool feature of this extension is the query playground, where you can simply type your query, execute it, and visualize result directly in the browser.

image

figure 5: wiql playground in action, look at the asof operator used to issue a query in the past.

as you can see from figure 5, you can easily test your query, but what is most important, the asof operator is fully supported and this guarantees you the ability to do historical queries directly from the web interface, instead of resorting using the api. if you need to experiment with wiql and you need to quickly create and test a wiql query, this is the tool to use.

i think that this add-in is really useful, not only if you are interacting with the service with rest api and raw wiql, but also because it allows you to export/import queries between projects/organization and allows you to execute simply historical queries directly from the ui.

having the full support of wiql allows you to use features that are not usually available through the ui, like the asof operator.

as a last trick, if you create a query in the web ui, then edit with this add-in, add asof operator, and then save. this will be saved in the query, so you have a historical query executable from the ui. the only drawback is that, if you modify the query with the web editor and then save, the asof operator will be removed.

Database DevOps azure

Published at DZone with permission of Ricci Gian Maria, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • How to Maximize the Azure Cosmos DB Availability
  • Automating Databases for Modern DevOps Practices: A Guide to Common Patterns and Anti-Patterns for Database Automation Techniques
  • Optimizing Azure DevOps Pipelines With AI and Continuous Integration
  • Strategic Insights Into Azure DevOps: Balancing Advantages and Challenges

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!