...
Handlebar supports full logic expressions such as if, equals as well as expression in expressions. Find more information on the template language here however most users do not need the details.
Hello World Example
As an example we want to populate some of below Jira Issue MOON-1 data into a Word document.
...
Finally press the “Populate“ button and the Jira data is populated into the template. Then press “Restore“ to go back to the template again.
...
Advanced
...
Example explained
Each Jira Issue is an a Javascript JSON object and the handlebars extract information from that object. Viewing the object is available in Jira and the feature will also come to Word in upcoming versions.Around the handlebar expression there is an each soon also be available from the Word add-on.
Below you find the full handlebar expression sends to the backend server. At the top there is an #each statement that loops over all Issues . For configured in the Word Issue tab. To improve usability the #each loop is automatically added automatically by the add-on populating if missing however below code snippet is the full expressionin template. However for full control add one or multiple loops to the template.
Code Block |
---|
{{#each jira.issues}} {{key}} - {{fields.summary}} {{{jHtml renderedFields.description}}} {{/each}} |
...