Page tree

Versions Compared

Key

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

What are the templates?

Templates The templates are reusable sets of conditions, validators and post functions. They're defined once and can be used as many times as it's necessary. One template can be used in one or more transitions across many workflows. There are some extra features brought to JIRA Jira with condition and validator templates , they aresuch as:

  • Condition result inversion,
  • Validator result inversion,
  • Logical operators in workflow validators (similar to conditions),
  • Customized validation error messages (one for the whole set of validators),
  • Templates usage tracking across workflows and transitions,
  • Templates diagnostics to find incorrectly configured condtionsconditions, validators and post functions configured incorrectly,
  • Nested templates support (using a template-in-template).



Panel
borderColor#5db037
titleColorwhite
borderWidth0
titleBGColor#5db037
titleConditions Templates

Excerpt Include
Condition templates
Condition templates
nopaneltrue



Panel
borderColor#5db037
titleColorwhite
borderWidth0
titleBGColor#5db037
titleValidators Templates

Excerpt Include
Validator templates
Validator templates
nopaneltrue



Panel
borderColor#5db037
titleColorwhite
borderWidth
Post Functions
0
titleBGColor#5db037
titlePost-Function Templates

Excerpt Include
Post functions templates
Post functions templates
nopaneltrue


Executing templates

Templates are just definitions that have to be executed in specific workflow transitions. Running a template is possible by adding a special condition/validator/post function to a transitiontransitions. It doesn't matter how many elements is there are in a template, you only need to add only one element template to execute whole templateall underlying elements.

If a template is changed and published, all workflow transitions reflects reflect the change immediately.

Updating templates

Please note that a single template can be used many times, so editing it once can affect many transitions where the template is used. To avoid interrupting user's work when editing a template, we use a publishing technique the same as in JIRA Jira workflows. Do not forget to publish your changes.

Additionally, you can view when and by whom the templates were created and modified. 

Image Added