Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This configuration only affects HTML emails and cannot be used to render RTL text in a text/plain email.

1. Create a base paragraph Macro for RTL Conversion

Using the Jira Pattern Macros (Which are visible on the JEMH Macros tab) as a guideline, the following Macros can be used to render text in RTL in a specified language.

...

The Jira Macro ‘text-paragraph.vm’ is used repeatedly in Jira templates to render text. By creating an ‘RTL’ version, the rtl_paragraph macro can now be used instead of the original Jira Macro. This Macro can be used to render the issue description

2. Create a RTL Comment Macro

Info

The Comment Macro will not work unless the base paragraph Macro has already been created in Step 1. (Create a base paragraph Macro for RTL Conversion). The following Macros use the rtl_paragraph to render text from right to left.

As with the rtl_paragraph, the existing Jira Macros can be used as a guideline to build a macro for rendering comments. Jira uses the macros ‘text-top.vm’, ‘comment-top.vm’ to render comments. The only change needed to these macros is to make use of your new rtl_paragraph, rather than the ‘text-paragraph.vm’.

...

These new RTL Macros can be used in a Custom Template to replace the original left to right rendering of the Issue description and Comments. For a full example template in use, please import the JEMH Template Sets attached below.

Issue Created

Code Block
...
#if ($issue.description)
    #set($textParagraph = $issue.htmlDescription)
    #rowWrapperNormalBegin('', 'issue-description-container')
    #rtl_paragraph()
    #rowWrapperNormalEnd()
#end
...

View file
namejemh-issueevent-template-1.xml

Issue Commented

Code Block
...
#rtl_html_comment()
##parse("#rtl_html_comment()")
... 

View file
namejemh-issueevent-template-2.xml

Example Outcomes

Issue Creation Notification

...