Cloud Migration Resources
Planning a Jira Cloud migration? These resources can help you get started:
→ JMWE Cloud features – Review Cloud features and understand key differences between DC and Cloud.
→ Migration support from Appfire – Learn how we can help you migrate smoothly.
Standard JIRA Fields
This page explains how to access the value of Standard Jira fields using Nunjucks. Each field's structure is explained with examples. To understand how to write values into these fields see, Text input for fields and JSON input for fields.
It is now possible to access the standard fields of an issue by its Field name or Key.
Example:
{{ issue.fields.watches.watchCount }} and {{ issue.fields.Watchers.watchCount }}, both return the number of watchers.
When the field name contains a space or any special character, you need to use the array syntax to access the field :
Example:
{{ issue.fields['Issue Type'].name }}
{{ issue.fields['Component/s'][0].name }}
Affects Version/s
Field name :
Affects Version/sKey:
versionsDescription : The Affects Version/s field is an array of objects. Each object represents a single version.
Structure :
Accessing the Affects version/s field :
First Affects Version name :
{{issue.fields.versions[0].name}}Last Affects Version name:
{{ issue.fields.versions | last | field("name")}}where '|' is the pipe operator, 'last' and 'field' are filters. See Nunjucks annotations for more filters.
Join the names of the Affects Version/s, separated by commas:
{{issue.fields.versions | join("," , "name")}}Return all the Affects Version/s, in a format that can be used to set the Fix Version/s field :
{{issue.fields.versions | dump(2)}}Test whether "1.0" is in the Affects Version/s:
{{ issue.fields.versions | find({name:"1.0"}) }}
Assignee
Field name :
AssigneeKey:
assigneeDescription : The Assignee field is an object that represents the user who this issue is assigned to.
Structure :
Accessing the Assignee field :
AccountId of the Assignee :
{{issue.fields.assignee.accountId}}Timezone of the assignee :
{{issue.fields.assignee.timeZone}}