JWT Email Post Function

Issue #864 resolved
MAG-II created an issue

Hi Fidel -

Hope you're doing well. I have a new question about your JWT Add-on.

I am currently trying to send an email notification to an Issue Reporter and Creator upon a transition. What I want in the email notification is to have the hyperlink to get to the Issue (like the standard JIRA email notifications), as well as include the (mandatory) comment made by the JIRA Assignee to appear in the email's text body.

Do you think this is possible? With my current configurations the Reporter and Creator receive an email notification with the transition comment. That works well, however no link to the JIRA Issue can be seen in the email. As of now the email notification doesn't look authentic like the standard JIRA notification.

Configurations 2.PNG

Comments (11)

  1. Fidel Castro Armario repo owner

    Hi @michaelgayheart,

    You have to use HTML format and, in order to get the link to current issue, you should click on "HTML Link to Current Issue" as shown in the following screenshot:

    inser_issue_link.png

    Try the following text for your emails body:

    <p>
      A comment created in issue <a href='%{00169}/browse/%{00015}' target='_blank'>%{00015}</a>
    </p>
    
    <p>
      %{00127}
    </p> 
    
  2. MAG-II reporter

    With the following configuration I get this email. It does give me a link to the Issue, it's just not as "flashy" as a standard JIRA email notification with the project icons, Issue name, etc. Is there any way to make the email look more like a standard email notification from JIRA?

    email notification.PNG

  3. Fidel Castro Armario repo owner

    Hi @michaelgayheart,

    In your screenshot of the email I can see %(00015) instead of %{00015}, which what we expect according to the configuration shown by your second screenshot. I think that the actual configuration you are using may be different that what we see in that screenshot.

    Please, attach a screenshot of the whole configuration tab on the transition. I want to see all the post-functions you are executing and their configuration.

    Please, try to reproduce the problem, once again. before taking the screenshot of post-function's tab.

  4. MAG-II reporter

    It's great that I do have the Issue Key as the link in the email. I was just hoping that it would look something like the attached image, as well as include the Transition Comment.

    JIRA email notification.PNG

  5. Fidel Castro Armario repo owner

    Hi @michaelgayheart,

    You can look at the HTML that is using JIRA in their emails, and use something similar in your emails body. It should work.

  6. Log in to comment