Using Nunjucks Templates

Introduction to Nunjucks

One of the powerful features of JMWE is the ability to use Nunjucks templates to calculate field values dynamically, including text and date values for Jira fields, setting links between Jira issues using complex logic, and calculating transition values for Jira issues using values from other issues. Nunjucks is a sophisticated templating engine for JavaScript. It allows for dynamic content generation in any text field through the use of templates. A template contains variables and/or expressions, which get replaced with values when a template is rendered; and tags, which control the logic of the template. 

Some basic templating features are described in the pages of this section and more are documented on the Nunjucks website. For more information on Nunjucks templating, including additional features, please see the Nunjucks documentation.

Nunjucks in JMWE for Jira Cloud

Nunjucks in JMWE for Jira Cloud can be used to insert information in a variety of configuration values for numerous extensions; both issue and transition information can be inserted into new values using the various templating features. These include:

Additional Information

Additional information on accessing the data about an issue or a transition can be found on Issue and Transition Data.

Use cases that include Nunjucks annotations can be found on Use cases for post-functions.