YouTrack Standalone 7.0 Help

Use YouTrack as a Help Desk

On this page:

The Mailbox Integration is a key feature that lets you create issues from email messages and add replies as comments, in effect turning YouTrack into a help desk.

You can involve your customers in your issue tracking process without creating user accounts for them in YouTrack. Plus, YouTrack can involve multiple help desk customers in a single email thread.

When you use YouTrack as a help desk, your support workflow is clean and simple.

  • Your customers don't need user accounts in YouTrack to follow up on issues.
  • Your support engineers don't have to monitor a support mailbox.
  • Customers are notified when comments are added to issues.
  • Support engineers can read replies from customers as comments in YouTrack
  • When a customer adds recipients to a reply, they are also notified when the issue is updated. Additional recipients can add their own comments when they reply to the notification or the message from the original reporter.

This step-by-step guide shows you how to configure YouTrack to process and manage support requests.

Process Overview

To configure and use a YouTrack project as a help desk, follow these steps:

  1. Enable Email Notifications in YouTrack.
  2. Set Up a Project for Your Help Desk.
  3. Configure the Mailbox Integration.

Enable Email Notifications in YouTrack

First, make sure that email notifications are enabled and configured correctly on your server.

  • If you are using YouTrack InCloud and haven't changed the default settings, skip this step and continue with Set Up a Project for Your Help Desk. Email notifications are enabled and configured by default in your InCloud instance.
  • If you are have changed the default email notification settings in your YouTrack InCloud instance, or are using YouTrack Standalone edition, verify that email notification is enabled and the connection to an email server is configured.

If you use a Google mail server to send email notifications, use the same email address as your Server 'From:' email and your help desk notifications. Google does not let you use a substitute email address. If you use an email address as the From: address in your project that differs from the address in the global settings, the mail server does not deliver the messages.

You don't have to do anything special here, just follow the basic setup instructions and test the connection to the mail server. For specific instructions, see Global Settings.

When email notifications are enabled and configured in YouTrack, you are ready to create and configure your help desk project.

Set Up a Project for Your Help Desk

The project that you use for your help desk should be configured differently from a project that is used for a development team. You probably want to use a different set of custom fields, and will need to set the email address that is used for notifications in the project.

You also need to attach a workflow to the project that manages email notifications. To learn more about this workflow, see Notify Multiple Unregistered Users.

The configuration of the project is specific to this use case, so we describe it here in some detail.

To create a new project to use for the help desk:

  1. Click the Projects link in the header, then click the Create Project button.
  2. Enter a name (Help Desk), and a description for the project.
  3. Select the project type that you want to use. Any type will work just fine, but if you select a Kanban project, YouTrack automatically creates an agile board that your support engineers can use to manage issues. This project type also uses fewer default custom fields, which makes it easier to configure for your help desk.
  4. Click the Create project button.
    • The profile page for the new project opens.
  5. Click the Edit project link.
  6. Set the manager of the help desk as the Project Lead.
  7. Enter the email address that you want to use to send notifications for the help desk project. Use the same email address that customers use to send support requests.
    /help/img/youtrack/7.0/projectFromEmail_thumbnail.png
  8. Click the Apply changes button.
  9. Select the Fields tab and configure the custom fields in the new project:
    • Add your support engineers to the list of assignees.
    • Configure the custom fields that you want to use in the project. For a help desk, you can get by with Type, Priority, Assignee, and State. The project administrator can add more custom fields as needed.
    • Remove any unrelated default custom fields.
    /help/img/youtrack/7.0/helpDeskFieldsInit_thumbnail.png
  10. Select the Workflow tab.
  11. Detach any unrelated workflows. For example, if you used the Kanban project template, you can detach the Kanban workflow. It's more appropriate for development teams, not support engineers.
  12. Click the Attach workflows button and select Notify Multiple Unregistered Users from the drop-down list.
    • The workflow is attached to the project.
    • The requires setup flag indicates that the workflow uses custom fields that are not used in the project.
  13. Add the missing fields and field values to the project:
    • Expand the workflow and select the first workflow rule.
    • Click the Update fields button to add the required fields to the project.
    • Repeat this process for the second workflow rule.
    The following custom fields are added to the project:
    Custom FieldDescription
    All related emailsStores the email addresses for all of the participants in the discussion. The workflow uses this list to send email messages to recipients who are not registered users in YouTrack.
    Last message related emailsStores only the email addresses that were included in the most recent message that was processed by the mailbox integration. This field is updated when YouTrack processes an incoming email message. The workflow copies these email addresses to the All related emails field every time an issue is updated. This ensures that recipients who were not included in the most recent email message are not sent notifications.
  14. When finished, check the list of custom fields in the project to verify that all of the required fields are in place.
    /help/img/youtrack/7.0/helpDeskFields_thumbnail.png

Configure the Mailbox Integration

The last step is to configure the mailbox integration for the help desk project.

The configuration is specific to this use case, so we describe it here in some detail. For general instructions, see Mailbox Integration.

To configure the mailbox integration:

  1. Open the Administration > Mailbox Integration page.
  2. Set the Fetching interval. For details, see Mailbox Integration.
  3. Connect to the mail server that you use to receive email messages. For details, see Mailbox Integration.
    /help/img/youtrack/7.0/addMailbox_thumbnail.png
  4. Click the Add Mailbox Rule button and configure the following settings:
    SettingDescription
    MailboxSelect the mailbox that you provided as the Project 'From:' email.
    ProjectSelect the project that you configured to use for the help desk.
    /help/img/youtrack/7.0/mailbox_rule_main_thumbnail.png
  5. Click to expand the Filter section and enter values for the following settings:
    SettingDescription
    FolderSelect the folder from which you fetch email messages on the mail server.
    /help/img/youtrack/7.0/mailbox_rule_filter_thumbnail.png
  6. Click to expand the Reporter section.
  7. Select the Always set predefined user as reporter option and select the predefined user to set as the reporter for all issues that are created from incoming email messages. This option guarantees that YouTrack does not create a user account for each new customer who sends a support request.
    /help/img/youtrack/7.0/mailbox_rule_reporter_thumbnail.png
  8. Click to expand the Postprocessing section.
  9. In the Command on New Issues input field, enter the following command:
    Last message related emails ${from} ${to} ${cc}
    /help/img/youtrack/7.0/mailbox_rule_postprocessing_thumbnail.png

    This command stores all of the email addresses that are included in processed email messages. When an issue is updated, the workflow processes this data, updates the All related emails field, sends notifications, and clears this field. For this reason, you will probably never see any values in the Last message related emails field.

  10. Copy the same command to the Command on New Comment field.
  11. Click the Save button.

When you have finished with the configuration of the mailbox integration, you're all set. You are ready to use YouTrack as a help desk and handle incoming requests that are sent to the email address for your customer support team.

Key Configuration Settings

The configuration for the mailbox integration requires setup on a few different pages in YouTrack. If you're having problems and need to verify the setup, check that the following settings are configured correctly.

PageSetting
Global Settings > NotificationsEmail notifications are enabled and configured for your YouTrack server.
Edit Project > GeneralThe Project 'from' email is set to the email address that customers use to send support requests.
Edit Project > FieldsThe string-type fields All related emails and Last message related emails are added to your project. You can add these fields to your project when you attach the Notify Multiple Unregistered Users workflow and update the fields in your project.
Edit Project > WorkflowThe Notify Multiple Unregistered Users is attached to your project.
Mailbox Integration Settings > Mailbox RuleThe Mailbox is set to the mail server that processes email messages that are sent to the address that you used as the Project 'from' email in your project.
Mailbox Integration Settings > Mailbox Rule > ReporterThe Always set predefined user as reporter option is enabled. This setting prevents the creation of new user account for each customer who sends an email message to your support address.
Mailbox Integration Settings > Mailbox Rule > PostprocessingThe command Last message related emails ${from} ${to} ${cc} is set for both the Command on New Issues and Command on New Comment input fields.

The Help Desk in Action

Now that you've configured YouTrack to function as a help desk, let's see how it works. Here is how YouTrack handles a sample customer request.

  1. Your customer sends an email message to your help desk address.
    /help/img/youtrack/7.0/userEmail_thumbnail.png
  2. The email message is processed by the mailbox integration. A new issue is created based on the email message.
    /help/img/youtrack/7.0/newIssueFromEmail_thumbnail.png
    YouTrack stores the email address of the customer in the issue.
  3. A support engineer adds a comment to the issue to respond to the customer request.
    /help/img/youtrack/7.0/supportReply_thumbnail.png
  4. The customer receives an email message that includes the new comment.
    /help/img/youtrack/7.0/notificationReceived_thumbnail.png
  5. The customer replies to the email message.
    /help/img/youtrack/7.0/userReplyEmail_thumbnail.png
  6. YouTrack adds the text in the reply as a comment in the original issue.
    /help/img/youtrack/7.0/userComment_thumbnail.png

From the customers' point of view, all they do exchange emails with your support team. Your support team simply reads and adds comments to the issue. Plus, you get to take advantage of using a full-featured issue tracking system.

Enhancements

This setup shows you how to set up YouTrack to manage support requests. You can configure your YouTrack system to support additional use cases and match your support routine.

Review this list to see if there are any additional features that you want to activate or configure in your project.

EnhancementDescription
Update email message textThe workflow that sends notifications to unregistered users adds a line of text to the end of the message. To update this part of the message, edit the text in the Send notifications to all unregistered users rule. For more information, see Notify Multiple Unregistered Users.

Note that the message text in the workflow has been localized. To customize the message, you need to remove the l10n expression and replace the localized text string with a static string literal in the desired language. For more information, see Localization.

Change priority based on issue ageYou can automatically raise the priority of an issue based on the amount of time it has been open. For more information, see Auto Raise Priority.
Use multiple support email addressesWe use this setup for the YouTrack team. You can contact us at youtrack-feedback@jetbrains.com or youtrack-incloud-support@jetbrains.com. All of these requests end up in one Gmail inbox. As you can only use one From field in a project, we use a workflow to manage each email address.

The solution is to create a workflow rule and attach it to your help desk project:

rule Remove additional feedback emails from All related emails when All related emails.changed { All related emails = All related emails.replace("email@test.com", ""); }

Use the replace method to convert any email address that you want to remove from the notification into an empty string.

Send confirmation emails on issue creationWe prefer to minimize the number of notifications that customers receive from YouTrack. This is why we don't send notifications when issues are created.

If you choose to send a notification, just add the following lines of code to the Collect related emails on issue creation rule of the Notify Multiple Unregistered Users workflow (right before the Last message related emails=null line):

var reporterEmail = Last message related emails.split(" ",preserveAllTokens).first sendMail(reporterEmail, "Your subject", "Your email body")

See Also

Last modified: 2 February 2017