commentcreate_issue

imerit_ango.sdk.SDK.

create_issue(task_id, content, content_mentions, object_id, position, error_codes, pct_details)

Creates an issue for the specified task based on the provided configuration parameters.

Parameters

  • task_id: string

    • ID of the task where the issue will be created. Task IDs can be obtained from the UI and from get_tasks.

    • Example: "0000000aa0a00a0000aaaa0a"

  • content: string

    • The text content of the issue.

    • Example: "The bounding box here should reach the edges."

  • content_mentions: List[dict]

    • List of users to mention in the issue content.

    • Example: [{"userEmail":"[email protected]"}]

  • object_id: string

    • ID of the object the issue is related to. If provided, the issue is attached to this object.

  • position: List[int]

    • Position, in pixels, of where the issue should be placed on the image asset.

    • Example: [25, 15]

  • error_codes: List[dict]

    • Error codes to associate with the issue.

    • Example: [{"category": "Wrong", "name": "Class", "key": "Wrong+Class"}]

  • pct_details: dict

    • Optional PCT-specific metadata for the issue.

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

Example

Create an issue on a task

Create an issue on a specific object

Create an issue at a specified location

Mention a user in the issue content

Create an issue on an object and attach an error code to it

circle-info

Last updated