Examples

Not only can triggers be used for changing issue statuses, but they can also embed Tracker into any service with a public API. Let's take a look at a couple of examples of such integration on this page.

Slack integration examples

Let's set up Tracker so that it sends notifications to a team chat in Slack when a release is ready for testing. First we will have to create a trigger that keeps track of issue statuses like “Release” and sends an HTTP request when the status is changed to “Ready for testing”.

Step 1. Set up Slack
  1. Log in to Slack.

  2. Connect Tracker to Slack as an external app (Slack App):

    1. Follow the link Create your Slack app.

    2. Think of a name for the app, like “Tracker”.

    3. Select the workspace to connect Tracker to.

    4. Click Create App.

  3. Enable Incoming Webhooks → Activate Incoming Webhooks in the settings of your new Slack App.

  4. Refresh the settings page.

  5. Click Add New Webhook to Workspace.

  6. Select the channel Tracker will send messages to and click Authorize.

  7. The app settings page will then display the address Tracker will use to send messages in the Webhook URLs for Your Workspace section. Here's what the address should look like:

    https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

    Copy the address as you will need it when setting up Tracker integration.

Step 2. Set up Tracker
  1. Log in to the Tracker. You must have administrator privileges for the queue you will be integrating.

  2. Open the queue page.

  3. To the left of the queue name, select  → Configure.

  4. On the left-hand panel select Automatization → Triggers and click Create trigger.

  5. Enter the trigger name, such as “Slack-notifications”.

  6. Configure your Trigger conditions so that the trigger reacts when a Release issue changes its status to Ready for testing:

  7. Click Add action and choose HTTP request.

  8. Configure the request:

    • Method: POST.

    • Address: the address you received when setting up integration in Slack.

    • Authorization method: NoAuth.

    • Content type: application/json.

    • Request body:

      {
          "link_names": true,
          "text": "@tracker, time to test this issue <https://tracker.yandex.ru/{{issue.key}}|{{issue.key}}>: {{issue.summary}}",
      }
    • Leave the headers empty.

  9. Save your trigger.

This trigger will now be keeping track of all changes to issue statuses in the queue. When a Release issue changes its status to Ready for testing, a message is sent to the team chat with the link to the issue and the text that says: “Time to test this issue: TEST-123: Setting up triggers”. Similarly, you can configure triggers for other events and issue types.