Using YouTrack 5.1 as Your Help Desk

Update: With the YouTrack 5.2 we introduced the enhanced Help Desk workflow that allows you to support multiple customers in a single ticket/issue. Please refer to the Helpdeskers, Support Multiple Customers in a Single YouTrack Thread blog post for the Help Desk configuration and setup instructions.

It’s been a while since we added mailbox integration in YouTrack. Mailbox integration is a key feature that allows you to create an issue from email and add replies as comments, in effect turning YouTrack into a help desk.

With YouTrack 5.1 we made great changes to our help desk support. Now you can involve your customers in your issue tracking process without the necessity to create user accounts for them in YouTrack. We made this possible with the help of a brand new workflow called NotifyUnregisteredUsers, comes with YouTrack 5.1.

Use Case

We want to have a project in which YouTrack will create issues from emails from our customers, but we don’t want to register every customer in our YouTrack. Yet we want to be able to notify these unregistered users about their requests, and hold a conversation with them in YouTrack. How can we do this?

Step-by-step Configuration for YouTrack Help Desk
Our help desk configuration contains the following parts:

  • Checking/Configuring system-wide email notification settings.
  • Creating and configuring a help desk project.
  • Attaching workflow to the project.
  • Configuring mailbox integration for the help desk project.

Quick note before we begin:
You must have low-level administration permissions to follow the described procedure.

Part I: Configuring System Email Notifications

First of all, we need to make sure that email notifications are enabled and configured correctly on our server.

If you are using YouTrack InCloud edition and haven’t change the default settings, you can skip this part and move on to the Part II. In this case we have already enabled and configured sending email notifications for you.

If you are using YouTrack InCloud edition and have change the default settings or if you are using YouTrack Standalone edition, you need to make sure that sending email notifications is enabled and working properly.

    1. Open Administration > Settings, and scroll down to the ‘Email’ section.
    2. Select the ‘Email’ check-box to enable sending email notifications.
    3. Provide SMTP server configuration and test the connection.

Important Note About Using Google Mail:
If you are using Google mail server for sending email notifications, please make sure that the email address you use for the notifications is the same address you use for the help desk notifications. Google does not allow substituting sender’s email addresses. Thus, the per-project address you provide for a help desk project will not work if differs from the system-wide email notifications address.

When sending notifications is enabled and configured, you are ready to proceed to the Part II of the help desk configuration.

Part II: Creating and Configuring Your Help Desk Project

Create a new project, which you will use for the help desk:

  1. Open Administration > Projects and click the link Create new project.
  2. Set the project’s name (‘Help Desk’), ID, and select a project lead.
  3. Assign an email address for the Help Desk project.
    Please pay attention to this step: To keep conversation with our users in YouTrack, we need a separate, unique email address for our project, so our customers get notifications from and reply to this particular email address. Typically this would be your support/feedback email address.

    New Help Desk project

    New Help Desk project

  4. Configure issue fields the new project ‘Help Desk’: Add assignees, remove unrelated default fields, configure remaining related fields. In our case, we decided to leave only four fields: Type, Priority, Assignee and State (we renamed it to ‘Request State’).

Part III: Attaching the Workflow to the Help Desk Project

Attach the default NotifyUnregisteredUsers workflow to the Help Desk project. This configuration step is also important because this particular workflow implements sending notifications to your customers.

  1. Switch to Projects > Help Desk > Workflow tab and click the link Attach Workflow.
  2. In the ‘Workflows for Help Desk’ dialog box, select the workflow ‘jetbrains-youtrack-notifyUnregisteredUsers’.
    Selected workflow and suggested Quick Fixes

    Selected workflow and suggested Quick Fixes

    Important! Another key point in our configuration: When you select the workflow, YouTrack will suggest two Quick-Fixes to add a couple of additional fields to the project:

    • Customer Email — the field that will contain actual email address of the requester, hence allowing your customers to receive notifications without registering in your tracker.
    • Last comment author — the field that will allow your customers not to receive excessive notifications (as unregistered users they can’t configure their notifications, so in a way we will do this for them).

Please make sure you have applied these quick-fixes! Otherwise the workflow won’t work correctly for the help desk project.

Before we proceed to the next part of the configuration, let’s check the current list of issue fields in the project just to make sure all necessary fields are in place:

Issue fields in Help Desk project

Issue fields in Help Desk project

Okay, all fields are in place, so we can now set up Mailbox integration.

Part IV: Configuring Mailbox Integration

  1. Open Administration > Mailbox Integration page.
  2. Add the mailbox for your project’s email (the one you provided as “Project ‘from’ email” while creating the Help Desk project. In our case we used ‘’).
    "Add Mailbox" Dialogue

    “Add Mailbox” Dialogue

  3. Add mail processing rule: click the Add Rule link and set up the following parameters:
    1. On the Main tab select project-Help Desk, Mailbox (the one we have just created), and Maintainer:
      Main tab of a mailbox integration rule

      Main tab of a mailbox integration rule

    2. Switch to the Filter tab, click the Folder drop-down list and select the folder from which we will fetch the emails. We used INBOX for our IMAP account.
      Filter tab of a mailbox integration rule

      Filter tab of a mailbox integration rule

    3. In the Reporter tab, select the option ‘Always set <username> as reporter’ and select the user who will be the reporter of all issues created from collected emails. This is what guarantees that YouTrack will not create a user account for each new customer who sends you a request.
      Reporter tab of a mailbox integration rule

      Reporter tab of a mailbox integration rule

    4. In the Postprocessing tab, provide the following commands:
      • In the field “on issue created”, Customer email ${from}. This command will be applied to each new issue in the Help Desk project created from email. It actually assigns the ‘from’ email address—your customer’s email address—to the field ‘Customer email.’
      • In the field “on comment created”, Last comment author ${from} command, which will be applied to each new comment created from email in the Help Desk project created from email.

      Providing these commands is another key point in configuring your help desk system.

      Postprocessing tab of a mailbox integration rule

      Postprocessing tab of a mailbox integration rule

After saving the new mailbox integration rule, your configuration is finalized. Now your tracker is ready to start serving as your help desk system and handling email requests from your customers.

Summary of Configuration Key Points

Here we’d like to list once again the key points of the help desk configuration that you should keep in mind:

  • When creating a project, make sure to set the “Project ‘from’ email” to your feedback/support email. Thus the notifications will be sent to your unregistered customers from this email, and they will reply to the correct address.
  • Attach the notifyUnregisteredUsers default workflow to your help desk project.
  • Make sure to apply the quick-fixes suggested by the workflow to add these two fields to your project: “Customer email”and “Last comment author”.
    If you somehow missed the quick-fix, you can create and/or add these fields manually. Just keep in mind that both of these fields must be attached to your project in order to make the help desk work.
  • The mailbox integration should be set for the same feedback/support email address as the Project ‘from’ email.
  • Use the Always set User as reporter option to exclude the possibility of creating new user accounts automatically.
  • Make sure to specify these two commands to apply during the post-processing of an email:
    • Customer email ${from}” command for each new issue created from the email.
    • Last comment author ${from}” command for each new comment created from the email.

How the Process Will Look to Your Customers

So we’ve just configured YouTrack to function as a help desk. To give you an idea of how the conversation between a customer and a support team looks like in such a help desk, here is a sample of typical processing of a customer request:

  1. Your customer sends an email to your help desk address:
    Original email from a customer

    Original email from a customer

  2. From the original email a new issue is created in YouTrack:
    New issue created from the customer's email

    New issue created from the customer’s email

    The customer’s email is stored in the issue.

  3. A support engineer adds a comment to the issue, replying to the customer request:
    Support engineer replies in a comment to the issue

    Support engineer replies in a comment to the issue

  4. Customer receives a notification with the comment:
    Customer receives notification by email

    Customer receives notification by email

  5. The customer replies to the received notification in email:
    Customer replies to the notification in email

    Customer replies to the notification in email

  6. From the customer’s reply email, YouTrack adds a new comment to the original issue:
    Comment created from the customer's reply

    Comment created from the customer’s reply

As you can see, for the customer this is nothing more than exchanging emails with your support team. For the support team, it comes down to simple commenting an issue. Plus, you get all the advantages of the tracking system. And, of course, you can enhance the help desk configuration and tweak it to match your support routine. For instance, you can apply additional commands to new issues in Mailbox Integration, or you can attach other default workflows to notify the project lead about unresolved issues.


Get YouTrack 5.1 and start using it as your help desk today.

NOTE: If you’re using YouTrack InCloud, your site will be upgraded to v5.1 automatically, according to our Maintenance Calendar.

Going Forward

This is the first in a series of posts demonstrating how YouTrack can be used as something more than an issue tracker, and showcasing the powers of YouTrack customization. Coming up next in this series will be Using YouTrack for Payment Management. Stay tuned to our news @youtrack.

We hope this post was useful for you and we look forward to receiving your feedback and ideas!

Track with pleasure,
YouTrack Team

This entry was posted in features, how-to, release, tips. Bookmark the permalink.

74 Responses to Using YouTrack 5.1 as Your Help Desk

  1. Piero Sartini says:

    Great work, we really appreciate this feature.
    Is there a way to send an initial auto-reply to the external user as well? Right now the initial message is only send to the user creating the ticket (configured inside the Mail Rule)

    It seems to be essential to show some kind of reaction to the customer after he created a issue per email.

    • Ekaterina Ivanova says:

      Hello Piero, thanks for your feedback! We really appreciate it.
      The answer to your question, basically, is “yes, you can implement sending initial notification to the customer.” It could be done quite easily with another workflow rule, the one like this:

      rule notification about created issue

      when becomesReported() {
      if (Customer email != null) {
      sendMail(Customer email, "[YouTrack, Request created]", "Dear customer, We've recieved your email and have created support request in our tracker. Support team's reply will be sent to you as email notification about this request.");

      Of course, you can tweak this basic rule the way you see fit.
      The idea of informing the customer that his request has been received and processed somehow is very reasonable. When we decided to skip this initial notification in our “helpdesk workflow”, we focused on the idea that customer shouldn’t get “just auto-information”. Notification about the comment is actually an answer from the support team, and customer just replies to this email, if needed. We focused on plain email conversation, so to speak. :)

  2. Emelyanov Sergey says:

    Very nice feature! But not all tags and attachments can be used in comments, i try to use table – in email table does not have borders and if i attach a file in comment file dosnt attach in email.
    Thanks for great software :)

    • Ekaterina Ivanova says:

      Sergey, thanks for your feedback!
      Indeed, there’s a bug with parsing css styles from wiki in mail notifications. This bug causes the problem with table borders. We have created JT-23646 . Please feel free to vote or comment on the issue.
      As for attachments in notifications, could you elaborate your usecase? For example, if you’d like to paste an image, you can write !image.png! in your comment text with the name of the attached image. in the notification, the !image.png! will be transformed to img tag with the full path to the image file, and hence the image should be displayed. for a file, you can use [file: my.txt].

      • Emelyanov Sergey says:

        If i use !image.png! tag i see a img tag without src tag in email. If i use [file:my.txt] tag i see link without href attribute.
        I think we have this behavior because we have private Youtrack (without guest user)

  3. We actually implemented pretty much the same scheme however since workflows didn’t support notifications for non-existing users, we implemented this functionality within an SMTP proxy server that takes email notifications out of Youtrack and forwards them on with some logic.

    What seems to be not covered currently with the implemented workflow is if support user carbon copies (CCs) a bunch of other email addresses and they all need to be notified as well as the originator of the issue.

  4. Vasiliy Shiryaev says:

    This does now work for me:

    In the Postprocessing tab, provide the following commands:
    In the field “on issue created”, Customer email $(from). This command will be applied to each new issue in the Help Desk project created from email. It actually assigns the ‘from’ email address—your customer’s email address—to the field ‘Customer email.’
    In the field “on comment created”, Last comment author $(from) command, which will be applied to each new comment created from email in the Help Desk project created from email.

    The Customer email field is filled with string “$(from)”.
    Last comment author is never filled.
    Both issue and comment are added correctly though.

  5. Vasiliy Shiryaev says:

    How to localize emails?

    I have already changed workflow ” jetbrains-youtrack-notifyUnregisteredUsers”, reuploaded it to a server, checked that it contains russian text only, restarted YT service, reattached workflow to project but users still receives original emails.

    • Scott Cate says:

      I noticed that the new templates only affect new issues. Try and create a new issue for your test, and see if the new template is used for the new issue. (your mileage may vary, but this seemed to work for me)

      just a fellow user.

  6. Bob Williams says:

    The “Last comment author” field isn’t updating for me, either. Well, that’s not true: it’s updating, but rather than being set to the sender’s e-mail address, it gets reset to the default value that I specified in the field definition. I can see this by manually changing the value to some random value, then sending another message to trigger an auto-update.

    I verified that the command is exactly as typed above (I’ve tried copying-and-pasting it and typing it myself), and the “${from}” token (for which I get auto-completion) works just fine for the “Customer email” field.

    • Ekaterina Ivanova says:

      Bob, I’m sorry for the delayed answer.
      Actually, it works, but normally you won’t see it :) It is indeed reset to default value because of the workflow.
      Here is what happens:
      1. Mailbox integration: a new comment is added from user’s email, and immediately the “Last comment author” field is set to the customer’s address.
      2. Immediately, as the field has been changed, and issue has been updated, the “notifyUnregisteredUsers” workflow is triggered. It checks the field’s value, skips the notification, and it resets the “Last comment author” field to its default value.
      That’s it. As long as it happens quite fast, it might appear that the field is always set to the default.

      Actually, the “Last comment author” is more of a service field. It might be a good idea to make it private. However, please note, in this case the maintainer of the Mailbox Integration Rule should have permissions to update private fields.

  7. Todd says:

    I was working on enabling mailbox integration today. I noticed that on your example when the customer replies to email, the comment appears in youtrack exactly as written in the body of the email.

    However, when I (on InCloud) reply to an email, the comment I generate in youtrack inserts the email subject line with wiki header h2 markup (it uses ==Email subject==) before the comment itself from the body of the email.

    Is there a way to make it so that it doesn’t insert the subject line on comments? It’s distracting and directs attention away from the actual comment…

  8. Vitaliy says:


    I need help with the localization of messages sent by users.
    We consider your system for the organization of technical support, but I can not rebuild stantartny template.

    How can I correct it? I export the jetbrains-youtrack-notifyUnregisteredUsers, Got 3 file. How to edit them can not understand ((

  9. Lubomir Georgiev says:

    I am in a process of researching the YouTrack product (which looks really very good) and I have just configured the Mail integration.
    It seems that everything is working when I send an email to the configured mail address (a ticket is created successfully), but when I try to comment/reply on an issue I am getting an error which is saying that the App is not able to connect the the SMTP host. I have tried to use both – IMAPS and POP3S but the result is the same:

    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 0;
    nested exception is: Connection refused. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 0;
    nested exception is: Connection refused; message exception details (1) are:
    Failed message 1:
    javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 0;

    Do you have any idea?

  10. Hi, the customer email field is not getting populated even after attaching the workflow. What can I do about this? Thanks!

    • Ekaterina Ivanova says:

      Ravindranath, which edition do you use – InCloud or Standalone? If you use Standalone version, did you look in to logs for any related errors?
      Did you provide Customer email ${from} command in Email Integration settings?

      I’d also recommend contacting our technical support via email: ‘’ or ‘’ depending on the YouTrack edition you use.

  11. Vitaliy says:


    I need to create a complex report on problems in youtrack
    for example
    Event, the number of comments, type, priority, response time (the first comment), closing

    implemented reports do not fit. Tell me how to implement it?

    • Ekaterina Ivanova says:

      Vitaliy, hi!
      Complex reports are being actively developed, we plan to implement them in the next major version.
      At the moment, you can create such reports only by getting data via REST and calculating reports on that data.

      • Vitaliy says:

        Am glad to hear that the reports will be developed.

        I have two more questions:
        1. Can I replace the description of the issue when receiving a new comment from the user by e-small
        2. When sending a letter to the user as follows: wikify (myComment.text), is not transmitted quote (>)

        Happy you holiday of March 8

        • Ekaterina Ivanova says:

          As for your question, I would highly recommend you posting these particular questions at our forum

          btw, feel free to use Russian if it’s more convenient for you. :)

          p.s.: thanks for congratulations :)

          • Vitaliy says:

            Конечно удобнее :))

            На форуме я вопрос изначально и оставил по отчетам, но его даже никто не просмотрел.

            Но в любом случае почитаю. Спасибо

  12. Vitaliy says:

    And maybee you have a php client for rest api?

    • Ekaterina Ivanova says:

      Vitaliy, unfortunately no, we don’t have own PHP client, but I think there should be PHP-clients developed by our users.

      Thanks for your good wishes for March 8.

  13. Murat says:

    Hi, I want to set issue state to new when new comment comes from the customer. I tried bunch of workflow code but couldn’t make it happen. Can you help?

    • Vitaliy says:


      For example:
      when comments.added.isNotEmpty {
      if (comments.canBeUpdatedBy(“user”)) {
      issue.applyCommand(“state new”);

  14. Grunin Yuri says:

    works for me only with manually fetching.
    How can i make it work automatically?

  15. Grunin Yuri says:

    One more problem, screenshots in comments are not fetched?

  16. Vitaliy says:

    Hi, Ekaterina Ivanova!

    When I get query “GET /rest/export/{projectId}/issues”, the answer comes only 10 issue.

    Please help

    • Ekaterina Ivanova says:

      10 is the default limit for exporting issues via rest. to export more than 10, we need to use the ‘max’ parameter. it’s integer-type, so your request will look something like this: 'GET /rest/export/{projectId}/issues?max=350'
      I’ve updated the doc page. Sorry for the inconvenience.

      Another setting in YouTrack that affects the number of issues you can export, is 'Max Issues to Export' in system settings of your YouTrack instance. Check Administration > Settings > System panel. This parameter defines the number of issues that can be exported from your server with one request via rest api, reports, or for printing.
      This maximum number won’t be override by ‘max=N’ parameter of the rest export request.

      i hope you’ll find this helpful.
      Best regards,

  17. Alex Martini says:

    Hi, I’m very glad to see YouTrack going forward in this direction. I think that being able to interact with customers without needing to create an individual account for each of them is the way to go.

    Unfortunately, I have a use case that doesn’t seem to be covered by the new functionality introduced in YT 5.1. I’ll try to describe it below.

    Many of my clients use to send support requests via email, with carbon copies (CCs) to other members of their organizations (who must be able to follow the entire request lifecycle, from the moment it’s sent to the moment it’s solved).

    AFAICS, YT will allow me to interact with the original sender of the request (the one in the “From” field), but not with the ones that were in the CC list (who should also get notifications as the request is being processsed). Another way to put it: every email address on the CC list should be added as a watcher of the request.

    Is there any workaround (or a special workflow) for this use case? And if there isn’t one yet, are you planning on supporting this on a future release?


  18. Pingback: Helpdeskers, Support Multiple Customers in a Single YouTrack Thread | YouTrack — Agile Issue & Project Tracker

  19. Burhan Khalid says:

    Is there a way to forward (or attach) an existing message to a ticket such that it shows not as an attachment, but as a reply?

    • Valerie Andrianova says:

      Yes, you need to add the issue ID to the forwarded email subject and it will be added as a comment to the corresponding issue.

  20. Fran says:

    Is there a way to limit comments added being forwarded to the customer email unless they are added by a specific user?

    We have some comments on the issues to be internal only and only comments added by the Project Lead forwarded to the customer.

    • mariyadavydova says:

      Dear Fran,
      Only the comments visible for all users are sent in notification. That means that you can close internal comments with visibility group (the group of developers of your team).

  21. Roshan says:


    Could you please tell me if I can use only the add-comment-to-issues-via-email-replies feature and not the using create-issues-when-new-emails-arrive one?

    It’s not a customer facing YouTrack setup for us. It’s just for internal defect tracking, so we are more comfortable filing the issues ourselves, but it would be great to have the convenience of commenting on issues by email replies.

    Is it possible to have such an email integration with YouTrack?


  22. Is it possible to enable the helpdesk features discussed above for an existing project? I note for existing projects, it doesn’t seem to be possible to change the Project ‘from’ e-mail from the global one?

  23. nevermind about this question – looks like I can.

    What if I want registered users who create issues via e-mail to be the reporter and e-mail from non-registered users to create issues as the default reporter? Seems the config above will only work to have all issues created by the same, default user?

    • mariyadavydova says:

      Dear Jerry,
      Please have a look at step IV.3.C. There are three possible methods for choosing a reporter for the created issue. In your case you should select the second one (i.e. set sender as reporter, and if one not found, set default user (e.g. Reporter) as reporter).

  24. Yoel says:

    This is really cool and sounds very useful however I have a problem with the way it is design. You see all new issues are automatically set visible to all users. This give no chance to filter newly created issues for invalid/insulting/etc. I hope that the ability to manually review new issues will be added in upcoming upgrades.

    • mariyadavydova says:

      Dear Yoel,
      You can create a special group which will contain the reviewers you speak about (say ‘reviewers’) and in step IV.3.D modify the command that is performed on issue creation – “Customer email “${from}” visible to reviewers”. Thus all the new issues will be visible to reviewers only, so that they can open ‘good’ issue for all and delete ‘bad’ issues.

  25. Sir, 
    Yesterday  we moved from YouTrack standalone edition to Incloud edition hosted by you. Email setting was default and it was working ok.

    But after migrating database (It was done by Jetbrain after uploading database of standalone edition by us) from standalone to Incloud edition Email not working. I saw in setting that it changed from default setting to our smtp setting which was in our standalone edition. I did some default setting for email but don’t know the password for smtp login “youtrackmail”

    So kindly send the smtp password of your smtp server or change it in our Youtrack InCloud instance which link is –

    Thanks and regards

    Divakar Nath singh

    Lohia Corp Limited

  26. andrey tigay says:

    Hello Divakar Nath Singh,

    The issue has been already solved in other thread. However, I leave the answer here as well.
    To restore default email settings, please click ‘Reset to Defaults’ under Administration> Settings page.

    Thank you.

  27. Bottom of post says:

    Coming up next in this series will be Using YouTrack for Payment Management. Stay tuned to our news @youtrack.

    I’m interested in that post. Couldn’t find it in the archives and couldn’t find it on Twitters. Has Payment Management been covered yet?

  28. Matteo says:

    I’ve implemented on my youtrack server your guide and all works fine! After I’ve created a workflow to send an email when the issue was opened, but I’d like that the email texts are the seems of notifications. How can I use Notification texts in workflow?


  29. Lukas says:


    I can’t get Mailbox integration working . Maybe someone knows how to solve this?

  30. Jean-Lou says:

    Hi there:

    I managed to do the different set ups as detailed above. All ok except for one issue which I can’t find the solution: When posting a comment to an issue received from e-mail…this comment is not being sent to the person who raised the issue. In other words…issues received by mail are being downloaded correctly but comments being added are not being sent.

    Anyone can help?


    • mariyadavydova says:

      Dear Jean-Lou,

      The comments should be sent in this case.

      What version of YouTrack do you use?

      Have you checked that the email of the person who raised the issue is actually set into the appropriate field?

  31. andrey says:

    Добрый день. Можно ли потом как-то посмотреть все обращения, относящиеся к определенному email’у? :) Я могу конечно в теории workflow, чтобы он в linked-issues их добавлял.

    Задача простая: видеть первое ли это обращение пользователя или нет.

    • Valerie Andrianova says:

      Добрый день, Андрей
      Да, конечно, вы можете использовать поиск по значению поля email или customer email. Вы также можете использовать текстовый поиск, который выдаст вам все обращения с упоминанием емейла во всех полях (summary, description, comments etc.). И вы совершенно правы, можно написать workflow, который будет связывать повторные обращения.

  32. Jacek says:

    Hi Valerie,
    How are you?

    I have problem with sending of emails with attachments.

    I want to send email with attached image and I have problem:
    When using !image.ext! then this image is missing in email eg: in outlook I have crashed image (for example: , in other email software I have only text.
    Is there any log file which can help me figure out why this occurs? What can I do to solve it? Maybe, this is issue with SMTP?
    Did anybody have the same problem?

    Second thing
    I want to send attachment. But recipient gets link to this file.
    Is there any option to change it to send the email with real file (not link into youtrack)?
    We want to use standard version of YT (not cloud based).

    Thanks in advance

  33. Bala Bushka says:

    Does YouTrack supports encrypted emails?

    Thank you!

    • Valerie Andrianova says:

      Unfortunately, not at the moment. YouTrack mailbox integration is developed based on the JavaMail APIs, which currently have no support for sending or receiving secure email.

  34. Василий says:

    Спасибо, удалось настроить, всё работает!
    Однако, когда YT добавляет комментарий он оставляет HTML форматирование
    Например так:
    Я ожидал, что будет добавляться такой комментарий:

    Как сделать, что бы в комментарий добавлялся только текст, без форматирования и без лишнего содержимого?

    • Василий says:

      Написал такой сомнительный workflow, который вычищает комментарий

      when issue.comments.added != null && issue.comments.added.isNotEmpty {
      var commentText = comments.added.first.text;
      var posTo = commentText.indexOf(“”, opts);
      if (posTo > 0) {
      commentText = commentText.replace(“”, ” “);
      commentText = commentText.replace(“”, ” “);
      commentText = commentText.replace(“”, ” “);
      commentText = commentText.replace(“”, ” “);

      var posFrom = commentText.indexOf(“{html class=mailbox}”, opts);
      var posTo = commentText.indexOf(“”, opts);

      issue.comments.last.text = commentText.substring(posFrom + 20, posTo – 10);


      Но теперь на каждое письмо мне приходят уведомления, что мол комментарий добавлен.
      Как отключить эти уведомления, но оставить обычные уведомления про изменения и комментарии в запросе?

      Ещё маленький вопрос: как вставить символ переноса строки? Пробовал “\n” но это не сработало.

      • mariyadavydova says:

        Добрый день, Василий!

        Отвечаю по порядку:

        > Как сделать, что бы в комментарий добавлялся только текст, без форматирования и без лишнего содержимого?

        Относительно форматирования – на данный момент никак. Есть соответствующий реквест в нашем трекере –, но его реализация не запланирована на ближайшую версию.

        Относительно лишнего содержимого – его быть не должно, цитаты должны вырезаться. Если с Вашими письмами этого не происходит, значит, это баг. Я буду Вам очень благодарна, если Вы создадите тикет в нашем трекере на эту тему, куда приложите скриншот и оригинал письма (.eml).

        > Но теперь на каждое письмо мне приходят уведомления, что мол комментарий добавлен. Как отключить эти уведомления, но оставить обычные уведомления про изменения и комментарии в запросе?

        Не могли бы Вы уточнить сценарий? Верно ли я понимаю (исходя из скриншота), что Вы отвечаете на нотификацию, Ваш ответ добавляется к ишую в виде комментария под Вашим же именем, и Вы тут же получаете нотификацию о том, что комментарий добавлен? Не могли ли Вы приложить скриншот письма с нотификацией?

        > Ещё маленький вопрос: как вставить символ переноса строки?
        Внутри текстов комментариев действует html-разметка (между тегами {html}…{html}). Для того, чтобы перенести там строку, добавьте ‘ ‘.

  35. ondrej says:

    I am just interesting, how to change the subject of autoreply email to a form, that the unregistered customer can answer directly on it. I mean the same subject like email he receive if a comment is added.
    I can not let it work.

    Right now I use just

    rule Peon autoreply

    when becomesReported( ){
    if (All related emails!=null){
    sendMail(All related emails,”[YOUTRACK, Požiadavka vytvorená”,”Thank you xxx”);

    • mariyadavydova says:

      Ondrej, you can use issue.getId() and issue.summary to form a correct notification subject:
      var subject = "[YOUTRACK, Požiadavka vytvorená] " + issue.getId() + ": " + issue.summary;

  36. Vishnu says:

    I would like to make one of our agile boards visible for a specific group. The group is defined globally and has developer role permissions for the respective project. It is not shown in the dropdown list for “Can view and use the board” though. Another group, also globally defined with the same role permissions for the same project is shown as an option though. I don’t know why this is. Can anyone help?

    • Elena Pishkova says:

      This question has been here for a while, but I’ll answer here just in case someone will use it future. Those dropdown lists usually have all the groups included, they are not filtered according to the rights of the current user. So the only reason for some group being absent there is some missing synchronization with Hub. Please try to launch Sync on the Hub Integration page.

  37. John says:

    I’ve implemented on my youtrack server your guide and all works fine! After I’ve created a workflow to send an email when the issue was opened, but I’d like that the email texts are the seems of notifications. How can I use Notification texts in workflow?


    • Elena Pishkova says:

      Great to hear that! Unfortunately, there is no way to do that, except for manually copying the HTML markdown of notifications to the workflow code.

Leave a Reply to mariyadavydova Cancel reply

Your email address will not be published. Required fields are marked *