# Mantis

> Connect Mantis so annotated bugs flow from a Testsigma run result into your Mantis project in one click.

Mantis integration lets you file a bug in Mantis from a run result. The ticket carries the test's evidence: annotations, step screenshots, and the execution video. Setup needs two Mantis values.

## Prerequisites

- Your organization's Mantis **Account URL** and a Mantis **API Key**.

## Connect Mantis

The [Mantis documentation](https://mantisbt.org/documentation.php) covers generating an API token.

1. **Open integrations**: go to **Settings > Integrations**.

2. **Enable Mantis**: turn on the toggle on the **Mantis** widget.

3. **Enter the details**: in the **Mantis Bug Tracker details** dialog, enter the **Account URL** and **API Key**, then click **Save & Enable**.

## Report a bug

1. **Open the result**: go to **Run Results** and open the **Test Case Result** where you want to add a bug.

2. **Start the report**: click **Report Bug**.

3. **Pick Mantis**: in the **Report** overlay, click the **Mantis** icon.

4. **File it**: enter the bug details in the form and click **Report Bug**.

![The Report panel, with Mantis picked as the bug tracker](https://s3.amazonaws.com/website-static-docs.testsigma.com/new_images/projects/Updated_Doc_Images/update_mantis_5.png)

To attach the result to an existing Mantis issue instead, click **Link to Issue**, search for the issue, and click **Link Issue**.

When the bug is created, Testsigma automatically adds test result context to the Mantis issue, including the test execution video and step screenshots.
