...
As an example we want to populate some of below Jira Issue MOON-1 data into a Word document.
...
We add the handle bar for issue key, summary and description into the Word documentHandlebar expressions are easily recognised with the format {{ }} or {{{ }}}. There are more than 140 Jira handlebar expressions groupedpre-available handlebar Jira data fields grouped in the add-on. We recommend to use the search to find the right ones. In this example search for box and in the example we add key, summary and description by searching and then click clicking on the items.
...
Press Finally press the “Populate“ button and the Jira data is added to your populated into the template. Press Then press “Restore“ to get go back to the template again.
...
Advanced
How did the example above work under the hood?
Each Jira Issue is an 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 that loops over all Issues. For usability the loop is added automatically by the add-on populating if missing however below code snippet is the full expression.
Code Block |
---|
{{#each jira.issues}}
{{key}} - {{fields.summary}}
{{{jHtml renderedFields.description}}}
{{/each}} |