get_issues
imerit_ango.sdk.SDK.
get_issues(project_id, asset_id, task_id, stage_id, created_by)
Retrieve issues of a project
Parameters
project_id: string
The unique identifier for the project. You can find the project ID in the user interface or retrieve it using the
list_projectsfunction.
asset_id: string, default None
The unique identifier for the asset. You can find the asset ID in the user interface or retrieve it using the
get_assetsfunction. 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 or retrieve it using the 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_projectfunction. 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:
'[email protected]'
Returns:
output: dict
A dictionary containing the result of the operation.
Example
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)curl -X GET "https://imeritapi.ango.ai/v2/issues?project=$PROJECT_ID" \
-H "Content-Type: application/json" \
-H "apikey: $ANGO_API_KEY"Last updated