# get\_issues

`imerit_ango.sdk.SDK.`

## get\_issues(project\_id, asset\_id, task\_id, stage\_id, created\_by)

Retrieve issues of your project.

### Parameters

* **project\_id:** string
  * The unique identifier for the project. You can find the project ID in [the user interface](https://docs.imerit.net/sdk/sdk-documentation/..#project-ids) or retrieve it using the [`list_projects`](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/list_projects) function.
* **asset\_id:** string, *default None*
  * The unique identifier for the asset. You can find the asset ID in [the user interface](https://docs.imerit.net/sdk/sdk-documentation/..#task-and-asset-ids) or retrieve it using the [`get_assets`](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_assets) function. You can use this parameter to filter issues according to a specific asset in the project.
* **task\_id:** string, *default None*
  * The unique identifier for the task. You can find the asset ID in [the user interface](https://docs.imerit.net/sdk/sdk-documentation/..#task-and-asset-ids) or retrieve it using the [get\_tasks](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_tasks) function. You can use this parameter to filter issues according to a specific task in the project.
* **stage\_id:** string, *default None*
  * The unique identifier for the stage. You can retrieve the stage ID using the [`get_project`](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/get_project) function. You can use this parameter to filter issues according to a specific stage in the project.
* **created\_by:** string, *default None*
  * Email address of the user who created the issues. This parameter can be used to filter the issues based on the creator.
  * Example: `'user@example.com'`

Returns:

* **output:** dict
  * A dictionary containing the result of the operation.
  * Including a `status` field indicating whether the request was successful and a `data` field containing the response payload with updated resources produced by the operation.

### Example

{% tabs %}
{% tab title="python" %}

```python
import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')
project_id = os.getenv('PROJECT_ID')

ango_sdk = SDK(api_key)

# Get all issues of the project
sdk_response = ango_sdk.get_issues(project_id=project_id)
```

{% endtab %}

{% tab title="curl" %}

```bash
curl -X GET "https://imeritapi.ango.ai/v2/issues?project=$PROJECT_ID" \
  -H "Content-Type: application/json" \
  -H "apikey: $ANGO_API_KEY"
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
**See also**

[create\_issue](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/create_issue), [delete\_issue](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/delete_issue)
{% endhint %}
