---
metadata:
  - name: generator
    content: Diplodoc Platform v5.47.3
alternate:
  - https://yandex.com.tr/support/tracker/en/manager/create-macroses.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/tracker/en/llms.txt

# Setting up macros in Tracker

In Tracker, macros are scripted algorithms that can be executed on the issue page. Use macros to automate routine actions. Macros run in one click, allowing you to change issue parameters, create typical commands,.

{% note warning "" %}

Setting up macros requires the [**Queue management** access rights](https://yandex.com.tr/support/tracker/en/manager/queue-access.md).

{% endnote %}

Each Tracker queue has its own set of macros. To create a new macro for the queue:

1. <!-- source: en/_includes/transition-page.md -->
   In the left-hand panel, click <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor" aria-hidden="true" class="yc-icon nv-composite-bar__menu-icon" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.702 3.013 8 3.5V2.386A2 2 0 0 1 10.702.513l3.351 1.257A3 3 0 0 1 16 4.579v4.035a2 2 0 0 1-2.702 1.873L12 10v1.114a2 2 0 0 1-2.702 1.873L8 12.5v1.114a2 2 0 0 1-2.702 1.873L1.947 14.23A3 3 0 0 1 0 11.421V7.386a2 2 0 0 1 2.702-1.873L4 6V4.886a2 2 0 0 1 2.702-1.873ZM5.5 6.563l.553.207A3 3 0 0 1 8 9.579v1.319l1.824.684a.5.5 0 0 0 .676-.468V7.079a1.5 1.5 0 0 0-.973-1.405L6.176 4.418a.5.5 0 0 0-.676.468v1.676Zm4.553-2.293L9.5 4.062V2.386a.5.5 0 0 1 .676-.468l3.35 1.256c.586.22.974.78.974 1.405v4.035a.5.5 0 0 1-.676.468L12 8.398V7.079a3 3 0 0 0-1.947-2.809ZM1.5 11.421V7.386a.5.5 0 0 1 .676-.468l3.35 1.257c.586.219.974.779.974 1.404v4.035a.5.5 0 0 1-.676.468l-3.35-1.257a1.5 1.5 0 0 1-.974-1.404Z" clip-rule="evenodd"/></svg> **Queues** and select a queue. {#queue}
   <!-- endsource: en/_includes/transition-page.md -->

1. <!-- source: en/_includes/transition-page.md -->
   In the top right corner of the queue page, click <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" aria-hidden="true" class="yc-icon nv-aside-header-footer-item__icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none"><path fill="currentColor" fill-opacity=".85" fill-rule="evenodd" d="M8.875 2.125h2.25a.5.5 0 0 1 .5.5v.23c0 1.925 2.083 3.128 3.75 2.165l.2-.115a.5.5 0 0 1 .682.183l1.125 1.949a.5.5 0 0 1-.183.683l-.2.115c-1.666.962-1.666 3.368 0 4.33l.2.115a.5.5 0 0 1 .183.683l-1.125 1.949a.5.5 0 0 1-.683.183l-.199-.115c-1.667-.963-3.75.24-3.75 2.165v.23a.5.5 0 0 1-.5.5h-2.25a.5.5 0 0 1-.5-.5v-.23c0-1.925-2.083-3.128-3.75-2.165l-.2.115a.5.5 0 0 1-.683-.183l-1.125-1.949a.5.5 0 0 1 .183-.683l.2-.115c1.667-.962 1.667-3.368 0-4.33l-.2-.115a.5.5 0 0 1-.183-.683l1.125-1.949a.5.5 0 0 1 .683-.183l.2.115c1.667.963 3.75-.24 3.75-2.165v-.23a.5.5 0 0 1 .5-.5zm-2 .5a2 2 0 0 1 2-2h2.25a2 2 0 0 1 2 2v.23a1 1 0 0 0 1.5.866l.2-.115a2 2 0 0 1 2.731.732l1.125 1.949a2 2 0 0 1-.732 2.732l-.2.115a1 1 0 0 0 0 1.732l.2.115a2 2 0 0 1 .732 2.732l-1.125 1.949a2 2 0 0 1-2.732.732l-.199-.115a1 1 0 0 0-1.5.866v.23a2 2 0 0 1-2 2h-2.25a2 2 0 0 1-2-2v-.23a1 1 0 0 0-1.5-.866l-.2.115a2 2 0 0 1-2.732-.732l-1.125-1.949a2 2 0 0 1 .732-2.732l.2-.115a1 1 0 0 0 0-1.732l-.2-.115a2 2 0 0 1-.732-2.732l1.125-1.949a2 2 0 0 1 2.732-.732l.2.115a1 1 0 0 0 1.5-.866v-.23zM12.25 10a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0zm1.5 0a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0z" clip-rule="evenodd"/></svg></svg> **Queue settings**. {#settings}
   <!-- endsource: en/_includes/transition-page.md -->

1. Select **Automation** in the left-hand panel.

1. In the top right corner, click **Create** → **Macro**.

1. Enter a name for the macro.
    You can add a description below the name.

1. In the <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2 7.25a.75.75 0 0 0 0 1.5h5.69l-2.72 2.72a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 0 0-1.06 1.06l2.72 2.72H2Zm7.47 4.22a.75.75 0 1 0 1.06 1.06l4-4a.75.75 0 0 0 0-1.06l-4-4a.75.75 0 1 0-1.06 1.06L12.94 8l-3.47 3.47Z" clip-rule="evenodd"/></svg> **When running the macro:** section, enter the comment to be added to the issue when the macro is executed:

    - You can insert [issue field values](https://yandex.com.tr/support/tracker/en/user/vars.md) into the comment text. To do this, click <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.413 3.421A.841.841 0 0 1 4.25 2.5a.75.75 0 0 0 0-1.5 2.341 2.341 0 0 0-2.33 2.563l.199 2.096a.898.898 0 0 1-.677.957l-.139.035a1.39 1.39 0 0 0 0 2.698l.14.035a.898.898 0 0 1 .676.957l-.2 2.096A2.341 2.341 0 0 0 4.25 15a.75.75 0 0 0 0-1.5.841.841 0 0 1-.837-.921l.2-2.096A2.399 2.399 0 0 0 2.04 8a2.399 2.399 0 0 0 1.571-2.483l-.2-2.096Zm9.175 9.158a.841.841 0 0 1-.838.921.75.75 0 0 0 0 1.5 2.341 2.341 0 0 0 2.33-2.563l-.199-2.096a.898.898 0 0 1 .677-.957l.139-.035a1.39 1.39 0 0 0 0-2.698l-.14-.035a.898.898 0 0 1-.676-.957l.2-2.096A2.341 2.341 0 0 0 11.75 1a.75.75 0 0 0 0 1.5c.496 0 .884.427.838.921l-.2 2.096A2.399 2.399 0 0 0 13.959 8a2.399 2.399 0 0 0-1.571 2.483l.2 2.096Z" clip-rule="evenodd"/></svg></svg> **Variables** and select one or more values. The input field will show a placeholder like `not_var{{issue.<field_key>}}`.

    - You can also use [comment templates](https://yandex.com.tr/support/tracker/en/user/create-template.md). To do this, click <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="15" height="15" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14"><path fill-rule="evenodd" d="M10.5 2h-7C2.67 2 2 2.67 2 3.5v7c0 .83.67 1.5 1.5 1.5h7c.83 0 1.5-.67 1.5-1.5v-7c0-.83-.67-1.5-1.5-1.5M3.5.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3zm6 6H4.43a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1H9.5a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1m-5.32-3h3.57a.75.75 0 0 1 0 1.5H4.18a.75.75 0 0 1 0-1.5" clip-rule="evenodd"/></svg></svg> and select one or more templates from the drop-down list.

    If you don't want your macro to create any comment, leave this field empty.

1. Under <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" aria-hidden="true" class="yc-icon"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 14"><path d="M10.9 9.4v3.1h-9v-9h6.3l.8-.9c.1-.1 0-.4-.2-.4H2c-.7 0-1.2.6-1.2 1.3v9c0 .6.5 1.1 1.2 1.1h9c.6 0 1.2-.5 1.2-1.2V8.7c0-.2-.3-.3-.4-.1l-.8.8Zm4-5.1c.5-.6.5-1.5 0-2.1L13.8 1c-.6-.6-1.6-.6-2.1 0L5 7.7 4.7 10A1 1 0 0 0 6 11.2l2.3-.3L15 4.3Zm-2.5.7L7.6 9.8 6 10l.2-1.7 4.7-4.7L12.4 5ZM14 3c.1.1.1.3 0 .4l-.8.8-1.4-1.5.7-.8h.4l1 1.1Z"/></svg></svg> **Change field value**, select the issue parameters your macro will modify and set new values. If you don't want your macro to modify any issue parameters, skip to the next step.

    <!-- source: en/_includes/automation-list-delay.md -->
    {% note tip "" %}

    To find a [local queue field](https://yandex.com.tr/support/tracker/en/local-fields.md), enter the key of the queue where you want to set up an automation and a period before the field name (for example, `DEVS.Tester`).

    {% endnote %}
    <!-- endsource: en/_includes/automation-list-delay.md -->

1. Click **Create macro**.

    In a few seconds, the macro will appear in the list of automations.
