Skip to content

Bulk comment from a query in Azure DevOps

  • Azure DevOps
  • Automation
  • Schedule & bulk
  • Bulk
  • Comment
Bulk comment from a query flow overview
This overview shows the sequence of steps to schedule and comment on work items from a query.

On a schedule, run a shared query and add a comment on each matching item (max 50) in Azure DevOps.

Before enabling this automation, you'll need to set a shared query, the comment text, and your preferred timezone. This ensures the automation runs correctly and updates the intended work items.

Prerequisite: Install Automations App on your Azure DevOps organization

Create an automation from the Bulk comment from a query template, or start from scratch
Go to Project → Automations → Create automation from template Bulk comment from a query or Start from scratch.
Trigger

Trigger — Schedule

This step initiates the automation on a recurring schedule. It runs every day at 09:00 UTC, triggering the subsequent steps to execute the shared query and add comments.

Configured in this template

  • Occurrence: Every day at 09:00 (UTC)

You can customize

  • Adjust the occurrence time to fit your team's schedule.
  • Change the frequency to weekly or monthly if daily updates are not needed.
Bulk comment from a query trigger
Schedule trigger setup for daily execution at 09:00 UTC.
Get

Get — Execute a query

This step runs a shared flat Azure DevOps query to retrieve work items. It's useful for applying complex filters defined in Boards, ensuring that only relevant items are processed.

Configured in this template

  • Shared query: placeholder — pick a shared query in this project

You can customize

  • Select a different shared query to target a specific set of work items.
  • Modify the query in Azure DevOps Boards for different filtering criteria.
Bulk comment from a query action 1
Execute a query action to retrieve work items based on a shared query.
Action

Action — Add Comment

This action adds a Markdown comment to each work item retrieved by the query. It updates the items with the specified comment text, which can be used for bulk updates or notifications.

Configured in this template

  • Work on: Items from Get
  • Comment text: Bulk update from automation.

You can customize

  • Change the comment text to reflect the update or message you want to convey.
  • Select different work items if needed by altering the query.
Bulk comment from a query action 2
Add Comment action setup to apply comments to retrieved work items.

Full automation

Bulk comment from a query full automation
Complete view of the automation flow from scheduling to commenting on work items.

Common questions

How do I bulk comment from a query in Azure DevOps?
On a schedule, run a shared query and add a comment on each matching item (max 50) in Azure DevOps. Use the Bulk comment from a query template in Documentero Automations: open Templates, pick this flow, fill the required fields, and enable it.
What fields must I fill before enabling this automation?
You must set the shared query, comment text, and timezone before enabling the automation.
Can I change the work item types this automation comments on?
Yes, modify the shared query in Azure DevOps Boards to target different work item types.
How can I test this automation?
Run the automation manually through the Automations interface to test its behavior before scheduling.
How do I adjust the schedule for different time zones?
Modify the schedule trigger's timezone setting to match your local time zone or preferred schedule.

Visual Studio Marketplace

Automations

Documentero · Preview

Automate Azure DevOps workflows with triggers, actions, conditions, and scheduled rules.

Get it free