Examples
Let's look at some examples of how triggers work in Tracker:
- How to automatically pick assignees based on their status or component.
- How to automatically notify a user after an issue was created based on a request sent to the support team via email.
- How to automatically notify a user after an issue has been created based on a request sent to the support team via Yandex.Forms.
- How to set up notifications in messengers via HTTP requests.
- Pick assignees automatically
- Send a notification when an issue is created from an email
- Send a notification when an issue is created based on a form
- Send notifications to instant messengers
Pick assignees automatically
Different stages of a project are often handled by different employees. When an employee does their part, they transfer the issue to another assignee. In Tracker, each issue stage has its own status. When an issue receives a status update, a new employee can be automatically assigned to work on the issue with a trigger.
However, sometimes employees only handle issues related to their field of expertise and don't collaborate on a single issue. For example, each support team member only processes requests related to the product they were assigned to. To manage this kind of workflow, you can configure components so that they correspond to specific products. When a specific component is added to the issue, the employee responsible for the corresponding product is automatically assigned to work on it via a trigger.
Let's set up a trigger that automatically picks an assignee for our issue:
- Make sure every employee you might want to assign has full access to Tracker.
- Go to queue settings, open the Triggers section, and click Create trigger.
Set the trigger to react when the issue's “Status” or “Components” change:
- Choose.
- Add the condition.
If you want a new assignee to be picked after a status update, add the following condition:
and specify the status.If you want a new assignee to be picked after a component changes, add the following condition:
and specify the components.Note. This trigger only works if only one component is specified in the issue.
- Set a trigger action:
- Add the action Change field values.
- Chooseand specify who should be picked as the assignee after the trigger is executed.
- Save your trigger.
To see if you trigger works, pick any issue from the queue with the added trigger and change the issue's status or components.
Send a notification when an issue is created from an email
Let's say the support team is processing user requests in Tracker. Users contact the support team via email, and those emails are used as the basis for issues in Tracker.
Let's set up a trigger that automatically sends an email to the user telling them that their request has been registered:
- Step 1. Configure email integration
-
You need to set up email integration if you want to send emails right from Tracker and create issues from incoming emails:
Set up an email address for the queue that will create issues from user requests.
If you can't create such an address, this means your organization doesn't have its own domain. You need a domain to create mailboxes and newsletters. This includes creating queue addresses. You can use Yandex.Connect to add a domain for free.
- Set up sender names and signatures if needed.
- If users aren't your organization's employees:
- Step 2. Set up a trigger for sending email
-
Set up a trigger that automatically notifies users by mail when a new issue is created based on an email:
- Go to queue settings, open the Triggers section, and click Create trigger.
Set the trigger to react when a new issue is created based on an incoming email:
- Choose.
- Add the condition.
- Add the conditionand enter the email address to your queue.
- Enable Ignore case so that the queue address isn't case sensitive.
Set sending a message as the trigger action:
- Choose the Add comment action.
- Enable the Email option.
- In the To field, add the variable with the address of the user who sent the request. To do this, select the To field, click Add variable, and choose .
- Write the email. You can add issue fields to your message by clicking Add variable.
- Save your trigger.
To see if the trigger works, send an email to the queue address.
Send a notification when an issue is created based on a form
Let's say the support team is processing user requests in Tracker. Users contact the support team via a feedback form created in Yandex.Forms. An issue is then created based on that form.
Let's set up a trigger that automatically sends an email to the user telling them that their request has been registered:
- Step 1. Configure email integration
-
You need to set up email integration if you want to send emails from Tracker:
Set up an email address for the queue that will create issues from user requests.
If you can't create such an address, this means your organization doesn't have its own domain. You need a domain to create mailboxes and newsletters. This includes creating queue addresses. You can use Yandex.Connect to add a domain for free.
- Set up sender names and signatures if needed.
- If the users aren't your organization's employees, allow sending email from issue pages to external addresses.
- Step 2. Set up a form to register requests
-
To create issues from requests sent through forms:
- Go to Yandex.Forms and create a new form.
Add questions that let users provide relevant information necessary to register their request.
If you want to know the user's email address, add the Email question and make it a required field.
Set up Tracker integration for your form:
- Specify your queue and other issue parameters.
- Use the Issue description field to add answers to the questions included in your form.
- If you want to save a user's email address in your issue parameters, add the From field and choose .
- Save your integration settings.
- Publish the form.
- Step 3. Set up a trigger for sending email
-
Set up a trigger that automatically notifies users by email when a new issue is created from a form:
- Go to queue settings, open the Triggers section, and click Create trigger.
Set the trigger to react when a new issue is created based on an incoming email:
- Choose.
- Add the condition.
- Add the condition.
Set sending a message as the trigger action:
- Choose the Add comment action.
- Enable the Email option.
- In the To field, add the variable with the address of the user who sent the request. To do this, select the To field, click Add variable, and choose .
- Write the email. You can add issue fields to your message by clicking Add variable.
- Save your trigger.
To see if your trigger works, fill out the form you integrated with Tracker.
Send notifications to instant messengers
Messengers are a great way to quickly notify employees about important events. If a messenger has an API, you can use Tracker to set up a trigger that sends HTTP requests to the messenger's API during certain events. For instance, a request can be triggered once an error with the critical priority status is added to the queue.
To view examples for setting up triggers that send notifications to Slack and Telegram, see Messenger integration.