--- Title: Task Audit Directive Added: v2.0.0 Status: Active Last reviewed: 2019-01-14 --- # [Task Audit Directive](../../../lib/process-services/src/lib/task-list/components/task-audit/task-audit.directive.ts "Defined in task-audit.directive.ts") Fetches the Task Audit information in PDF or JSON format. ![adf-task-audit-directive](../../docassets/images/adf-task-audit-directive.png) ## Basic Usage ```html ``` ## Class members ### Properties | Name | Type | Default value | Description | | ---- | ---- | ------------- | ----------- | | download | `boolean` | true | Enables downloading of the audit when the decorated element is clicked. | | fileName | `string` | "Audit" | Name of the downloaded file (for PDF downloads). | | format | `string` | "pdf" | Format of the audit information. Can be "pdf" or "json". | | taskId | `string` | | (**required**) The id of the task. | ### Events | Name | Type | Description | | ---- | ---- | ----------- | | clicked | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when the decorated element is clicked. | | error | [`EventEmitter`](https://angular.io/api/core/EventEmitter)`` | Emitted when an error occurs. |