Post Function Emails

Issue #486 resolved
Former user created an issue

When adding Description Field into the email that is written in Visual rather than Text mode, It is not parsed and sent correctly. See attachments with build in JIRA email notification and Post Function Email Notification

Comments (13)

  1. Former user Account Deleted reporter

    Please note, Our Description Field is Rich Text Editor (Wiki Renderer)

  2. Fidel Castro Armario repo owner

    Currently JIRA Workflow Toolbox can't render Wiki format as HTML. We will try to support it in next version of the plugin (in a week approximately).

    I will provide a beta version as soon as possible.

  3. Fidel Castro Armario repo owner

    Hi Saar,

    Sorry, although I have already initiated the work on this issue, it's not yet completed due to a problem with the implementation and other issues with higher priority. I will try to have it implemented in version 2.2.32.

  4. Fidel Castro Armario repo owner

    Hi @saar_netzer,

    In version 2.2.32_beta_1, function wikiToHTML() has been implemented in the parser of the plugin.

    You can use "Copy a parsed text to a field" post-function before "Send an email" for setting Ephemeral string 1 with the content of Description rendered as HTML:

    Captura de pantalla 2017-02-16 a las 15.06.24.png

    Text to be parsed is:

    wikiToHTML(%{00001})
    

    where %{00001} is field code for Description.

    Then you use Ephemeral string 1 instead of Description when composing the body of your email.

  5. Former user Account Deleted reporter

    It's not working or I am doing something wrong: This is the email body in the post function where %{00061} is the value of Ephemeral string 1 : emailbody.PNG

    This is the Copy a parsed text function: wikiToHTML.PNG

    This is the post function order: postfuncorder.PNG

    This is the output email where the description is missing: missing description in email.PNG

  6. Fidel Castro Armario repo owner

    Are you using the Rich Text mode provided by JIRA in the recent versions, or a particular wiki format provided by a third party plugin?

  7. Fidel Castro Armario repo owner

    I have tested it in JIRA 7.3.1 and it works as expected, as you can see in the screenshots:

    Transition Configuration:

    Post-functions-configurations.png

    Issue Description:

    Issue Description.png

    Email Sent:

    Email-sent.png

    Are you using the Rich Text mode provided by JIRA in the recent versions, or a particular wiki format provided by a third party plugin?

  8. Log in to comment