# Priority

{% hint style="info" %}
Priority on tasks can only be set in projects using the **new** labeling queue logic (Dynamic Queue).

All projects created in Ango Hub versions prior to and including 4.6 use the **old** logic. Projects created in Ango Hub 4.7+ use the **new** logic.

You may upgrade your old projects to use the new logic. To do so, navigate to the project's *Workflow* tab, click on the chevron next to the *Sync Queues* button, and click on *Switch to Dynamic Queue.* The project will be upgraded instantly.

Please note that this process is **irreversible**. Projects upgraded this way lose the "Re-order and Sync" functionality, and gain the "Priority" functionality.

![](https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FeXgvAQl2EbZzQdeiTGdT%2Fimage.png?alt=media\&token=8e6ec1c3-39d2-440c-92ae-8ea859448529)
{% endhint %}

Project managers may assign granular priority levels to tasks in their projects. Tasks with higher priority levels will be shown to users (labelers/reviewers) before tasks with lower priority levels.

Tasks can be assigned a priority level between -1000 and +1000.

If you do not assign a priority level to a task, its default priority level is 0.

## How to set a task's priority

### During Import

#### In bulk from the *Add Data* import dialog

For the following import methods in the *Add Data* dialog:

* Cloud Upload
* Local Upload
* File Explorer

You may set the priority of the tasks you are importing from the *Priority Value* field.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FTYHavZbaBbiOtVde6wyP%2Fimage.png?alt=media&#x26;token=949d04e2-1cf7-404f-8085-877a0574a82f" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This field will not appear in projects using the old labeling queue logic. Refer to the hint box at the top of this documentation page for information on how to upgrade your project.
{% endhint %}

{% hint style="warning" %}
In the *Cloud Upload* import method, if you assigned individual priority levels in the JSON, the priority value you set in the *Add Data* dialog will overwrite the priority levels in the JSON.
{% endhint %}

#### Individually from JSON

When importing assets using the Cloud Upload JSON method, you may add a `priority` key-value pair to each task to assign a priority level to that task.

For example:

```json
[
  {
    "data": "https://url.com",
    "externalId": "cute-cat.jpg",
    "priority": 300
  }
]
```

{% hint style="info" %}
If, while uploading the JSON to Ango Hub using the *Cloud Upload* dialog, you set a priority level in the dialog itself, that will override all priority levels set in the JSON.&#x20;

Leave the priority field blank in the *Add Data* dialog to use the priority levels you set in the JSON.
{% endhint %}

### From the *Tasks* tab

Click on the checkbox next to the task(s) you wish to set the priority of.

Click on the *\[Number] Items* dropdown, and then on the *Set Priority* button.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FP04Fgoju9JjldjiPSmo5%2Fimage.png?alt=media&#x26;token=f50c3f7b-866f-4ad9-98cd-223d6195d4d9" alt=""><figcaption></figcaption></figure>

The following dialog will appear. Enter a priority value between -1000 and 1000, and click on *Set Priority*.

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FQxnpzPso438GwN6h6ACv%2Fimage.png?alt=media&#x26;token=e28472d8-9bd8-4b95-be30-fca70d78eba4" alt=""><figcaption></figcaption></figure>

The selected tasks will be given the priority level you have just entered.

### From the SDK

Use the [update\_tasks\_priority()](https://docs.imerit.net/sdk/sdk-documentation/project-level-sdk-functions/update_tasks_priority) function. Please refer to its documentation page for more information on its usage.

## How to see a task's priority

### From the *Tasks* tab

From the *Tasks* tab, click on the *Columns* dropdown, then enable the *Priority* column:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FInnQCoujJdlzpOBNJXyK%2Fimage.png?alt=media&#x26;token=54503989-0d3f-4aee-ab01-2ac5fb60a1f6" alt="" width="563"><figcaption></figcaption></figure>

This will make the *Priority* column appear in your table:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FYVX0mkNAlbIUoORlupBk%2Fimage.png?alt=media&#x26;token=b14eabfb-55db-4345-b0d5-9e5147d500ae" alt="" width="563"><figcaption></figcaption></figure>

### From the labeling editor

With a task open in any labeling editor, click on the *Task Info* button on the right to open the panel containing that task's priority level:

<figure><img src="https://3895963154-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTcOUG6rfWxqGM0N4db2P%2Fuploads%2FMjGj3Z6w5WTNQgmzLgXg%2Fimage.png?alt=media&#x26;token=4aa41e02-a2d4-44f7-bde0-8136bfa1854e" alt="" width="563"><figcaption></figcaption></figure>
