For the complete documentation index, see llms.txt. This page is also available as Markdown.

update_tasks_priority

imerit_ango.sdk.SDK.

update_tasks_priority(project_id, priority, filters)

Update the priority values of selected tasks within your project.

Parameters

  • project_id: string

  • priority: int

    • The new priority value assigned to the selected tasks.

    • Note: The priority value must be between -1000 and 1000. Higher values indicate higher priority.

  • filters: dict, default None

    • A dictionary of filters to specify the tasks to requeue.

      • taskIds: List[str]

        • List of task IDs used to directly update specific tasks.

      • externalIds: List[str]

        • List of external IDs used to directly update specific assets.

      • assetIds: List[str]

        • List of asset IDs used to directly update specific assets.

      • batches: List[str]

        • List of batch IDs used to filter tasks belonging to specific batches.

      • fromStageIds: List[str]

        • List of workflow stage IDs used to filter tasks currently located in specific stages.

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.

How to verify in Ango Hub?

After successfully executing the update_tasks_priority function, you can validate the changes directly in Ango Hub.

Navigate to: Projects → [Your Project] → Tasks

  • Ensure that the "Priority" column is enabled from the Columns dropdown.

  • Filter the relevant tasks as needed.

  • Verify that the priority values are correctly assigned to each task.

Changes made via the SDK are reflected in Ango Hub in near real-time. If updates are not immediately visible, please refresh the page.

Example

Last updated