> For the complete documentation index, see [llms.txt](https://docs.datasaur.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasaur.ai/integrations/robosaur/commands/generate-time-per-task-report.md).

# Generate Time Per Task Report

This command generates a time-per-task report that shows the task duration for each labeler. The report can help you:

* Monitor labeling productivity and efficiency.
* Identify bottlenecks in the labeling workflow.
* Track task completion time across labelers.

The command syntax is shown below.

## How it works

{% code overflow="wrap" %}

```sh
$ npm run start -- generate-tpt-report -h

Usage: robosaur generate-tpt-report [options] <teamId> <configFile>

generate timestamp Time Per Task report for a specific team with maximum 7 days period

Options:
  -s, --startDate <value>  Start date in ISO 8601 format
  -e, --endDate <value>    End date in ISO 8601 format
  -o, --outDir <value>     Path to a directory where the output will be written
  -a, --all                Generate all-time Time Per Task report (default: false)
  -h, --help               Display help for command
```

{% endcode %}

Example:

```
npm run start -- generate-tpt-report 1 ./config.json -s 2023-04-01 -o ./reports/
```

It will generate report for team ID 1 from Apr 1, 2023 and put it on the reports directory.

#### Team ID

You can find the team ID from the app URL. If the URL is `https://app.datasaur.ai/teams/1/projects`, then the team ID is `1`.

#### Configuration file

Like other Robosaur commands, this command requires a configuration file. For this command, the configuration only needs the `datasaur` attribute, which contains the OAuth credentials used to authenticate requests.
