Versions Compared

Key

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


Section


Column

Introduction to Nunjucks

Nunjucks is a sophisticated templating engine for JavaScript. It lets you insert dynamic content in any text 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. See here for an overview of the templating features available in Nunjucks.


Column
width400px


Panel
borderColorsilver
bgColor#f5f5f5
borderWidth1
borderStylesolid

On this page:

Table of Contents



Nunjucks in JMWE for JIRA Cloud

...

Nunjucks in JMWE for JIRA Cloud is used to insert information while

...

in

  • Set field value and Set field value of linked issues post-function to set a field value
  • Comment issue and Comment linked issues to create the body of the comment
  • Conditional execution section to conditionally execute a post-function
  • Transition [Current/Linked/Parent] issue(s) to specifying a transition to be triggered
  • Create/Clone issue post-function to
    • Calculate a project by selecting Calculated in Project
    • Calculate a parent issue key by selecting Another issue in Parent issue
    • Set fields of new issue by selecting Set field value to
    • Add a comment to the current issue
  • Email issue post-function to
    • Write the Subject, HTML body, Text body
    • Set the Recipients from the script in Users from template and Groups from template
  • Unlink issues from the current issue post-function to unlink issues based on the result of a Nunjucks template
  • Admin screen to test/run Nunjucks templates
  • Link issues to the current issue post-function to write JQL search expression

You can insert issue and transition information into the value using the templating features available in Nunjucks. Some basic templating features are described in this document, and more are documented on the Nunjucks website.

Templating features in Nunjucks

...

You might also want to look at Accessing the details of an issue or a transition in Nunjucks to know how to access the details of an issue or a transition.

See here for more templating features available in NunjucksYou might also want to refer here for use cases with Nunjucks annotations.