# Batch & Stage Statistics

## Overview

The Batch & Stage Statistics plugin enables you to generate and download comprehensive reports containing how tasks move through stages in your workflow. With this plugin, you can quickly see current batch status, historical stage visits by date, user-based contributions, overall workflow movement, and flow transitions between stages.

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center">Batch &#x26; Stage Statistics</td><td data-object-fit="contain"><a href="https://angohub-docs-assets.s3.eu-central-1.amazonaws.com/plugin-icons-banners/stage-batch-stats-export.png">https://angohub-docs-assets.s3.eu-central-1.amazonaws.com/plugin-icons-banners/stage-batch-stats-export.png</a></td></tr></tbody></table>

## Plugin Functionality

The Batch & Stage Statistics plugin generates a set of structured CSV reports that provide multiple views into workflow. These reports include current batch-stage counts, date-based stage visits, flow transitions between stages, annotator-based activity, and overall workflow statistics. Together, these tables help teams track progress, analyze throughput, identify bottlenecks, and gain clear visibility into how work moves through each stage of the workflow.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FcVbRlCfPqsfILxxdxlCh%2Fimage.png?alt=media&#x26;token=fed9cc76-301b-4bcc-8bdf-a388d95fab23" alt=""><figcaption></figcaption></figure>

Running the Batch & Stage Statistics plugin on your project generates multiple CSV files:&#x20;

**\[CURRENT] File**

Displays the current batch-stage counts. This table shows how many items are currently present in each stage for every batch, along with the total count per batch.

**\[DATE] File**

Displays stage visits based on date. This table allows you to analyze how batches progressed through stages over time and when stage activity was completed.

**\[FLOW] File**

Displays flow counts from one stage to another. This table captures transitions between stages (for example: Start > Label: 10). This helps visualize and analyze how work items move through the pipeline.

**\[<user@imerit.net>] File**

Displays stage visits based on annotator. This table breaks down stage activity per user, making it easy to understand individual contributions and workload distribution.

**\[OVERALL] File**

Displays overall stage visits across all users and batches. This table provides a high-level summary view of stage activity for reporting and performance analysis.

The CSV files contains following columns:

{% tabs %}
{% tab title="\[CURRENT] File" %}

<table><thead><tr><th width="138.3203125" align="center">Batch</th><th align="center">Start</th><th align="center">Label</th><th align="center">Review</th><th align="center">Complete</th><th align="center">Total</th></tr></thead><tbody><tr><td align="center">Batch-1</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">10</td><td align="center">10</td></tr><tr><td align="center">Batch-2</td><td align="center">0</td><td align="center">0</td><td align="center">0</td><td align="center">10</td><td align="center">10</td></tr><tr><td align="center">Batch-3</td><td align="center">0</td><td align="center">0</td><td align="center">5</td><td align="center">5</td><td align="center">10</td></tr><tr><td align="center">Total</td><td align="center">0</td><td align="center">0</td><td align="center">5</td><td align="center">25</td><td align="center">30</td></tr></tbody></table>
{% endtab %}

{% tab title="\[DATE] File" %}

<table><thead><tr><th width="138.3203125" align="center">Batch</th><th width="151.43359375">Completed Date</th><th align="center">Start</th><th align="center">Label</th><th align="center">Review</th><th align="center">Review (Accepted)</th><th align="center">Review (Rejected)</th><th align="center">Complete</th><th align="center">Total</th></tr></thead><tbody><tr><td align="center">Batch-1</td><td>2020-01-01</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">0</td><td align="center">10</td><td align="center">40</td></tr><tr><td align="center">Batch-2</td><td>2020-01-01</td><td align="center">10</td><td align="center">15</td><td align="center">15</td><td align="center">10</td><td align="center">5</td><td align="center">10</td><td align="center">50</td></tr><tr><td align="center">Batch-3</td><td>2020-01-01</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">5</td><td align="center">0</td><td align="center">5</td><td align="center">40</td></tr></tbody></table>
{% endtab %}

{% tab title="\[FLOW] File" %}

|        Flow       | Count |
| :---------------: | :---: |
|   Start > Label   |   30  |
|   Label > Review  |   35  |
|   Review > Label  |   5   |
| Review > Complete |   25  |
|    {% endtab %}   |       |

{% tab title="\[<user@imerit.net>] File" %}

<table><thead><tr><th width="138.3203125" align="center">Batch</th><th align="center">Start</th><th align="center">Label</th><th align="center">Review</th><th align="center">Review (Accepted)</th><th align="center">Review (Rejected)</th><th align="center">Complete</th><th align="center">Total</th></tr></thead><tbody><tr><td align="center">Batch-1</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">0</td><td align="center">10</td><td align="center">40</td></tr><tr><td align="center">Batch-2</td><td align="center">10</td><td align="center">15</td><td align="center">15</td><td align="center">10</td><td align="center">5</td><td align="center">10</td><td align="center">50</td></tr><tr><td align="center">Batch-3</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">5</td><td align="center">0</td><td align="center">5</td><td align="center">40</td></tr><tr><td align="center">Total</td><td align="center">30</td><td align="center">35</td><td align="center">40</td><td align="center">25</td><td align="center">5</td><td align="center">25</td><td align="center">130</td></tr></tbody></table>
{% endtab %}

{% tab title="\[OVERALL] File" %}

<table><thead><tr><th width="138.3203125" align="center">Batch</th><th align="center">Start</th><th align="center">Label</th><th align="center">Review</th><th align="center">Review (Accepted)</th><th align="center">Review (Rejected)</th><th align="center">Complete</th><th align="center">Total</th></tr></thead><tbody><tr><td align="center">Batch-1</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">0</td><td align="center">10</td><td align="center">40</td></tr><tr><td align="center">Batch-2</td><td align="center">10</td><td align="center">15</td><td align="center">15</td><td align="center">10</td><td align="center">5</td><td align="center">10</td><td align="center">50</td></tr><tr><td align="center">Batch-3</td><td align="center">10</td><td align="center">10</td><td align="center">10</td><td align="center">5</td><td align="center">0</td><td align="center">5</td><td align="center">40</td></tr><tr><td align="center">Total</td><td align="center">30</td><td align="center">35</td><td align="center">35</td><td align="center">25</td><td align="center">5</td><td align="center">25</td><td align="center">130</td></tr></tbody></table>
{% endtab %}
{% endtabs %}

### Supported Data Types <a href="#supported-data-types" id="supported-data-types"></a>

* Compatible with all data types available in AngoHub.

### Supported Annotation Tools <a href="#supported-annotation-tools" id="supported-annotation-tools"></a>

* Compatible with all annotation tools available in AngoHub.

## Plugin Configuration <a href="#plugin-configuration" id="plugin-configuration"></a>

From the **Stage Filter** field, pick the stages containing the tasks you'd like to get the export of. Similarly, from the **Batch Filter** field, you may select one or more batches the tasks of which will be exported. By default, all tasks are exported from all batches.

If you wish to receive an email when the export is complete, toggle **Send Email** on.

You may vary a number of settings related to your export from the **Config JSON** field. Each option is detailed below:

```json
{
  "logging_frequency": 0
}
```

* **"logging\_frequency":** Defines how frequently progress logs are displayed; setting this value to 0 disables logging entirely, while any positive integer enables logging at the specified interval. For more information on how to view plugin logs, [see here](https://docs.imerit.net/plugins/introduction-to-plugins/monitoring-plugin-progress).
  * Example:
    * <kbd>"logging\_frequency": 0</kbd>&#x20;
    * <kbd>"logging\_frequency": 100</kbd>
