This article is for Cloud. Visit Data Center
Predefined Variables
As you write your formula, Structure attempts to map your variables to well-known Jira fields:
Variables with the same name as a field are mapped to those fields. For multi-word fields, you can write the words without spaces, or place a _ between each word:Â
affectsVersions
 orÂaffects_Versions
.ÂMany commonly used variations of field names are mapped to the corresponding field.
In addition to Jira fields, some variable names are automatically mapped to common Structure attributes. See Structure Attributes.
When naming variables:
Do not include spaces. Omit spaces or use an underscore.
Case is ignored (AffectsVersions is the same as affectsversions)
Jira Fields
The following list contains the most commonly used variables that are automatically linked to a Jira field. This is not a complete list.
Jira Field | Standard Variable Name | Type | Notes |
---|---|---|---|
Affects Version/s |
| Array<Version> | Â |
Assignee |
| Â | |
Components |
| Array<Component> | Â |
Created |
| Number (Date/Time) | Â |
Creator |
| Â | |
Description |
| Text | Â |
Due Date |
| Number (Date) | Â |
Environment |
| Text | Â |
Epic |
| Text | Works for company-managed and team-managed projects |
Epic Link |
| Text | Only works in company-managed projects |
Fix Version/s |
| Array<Version> | Can also use: versions |
Key |
| Text | Can also use: issueKey |
Issue ID |
| Number | Â |
Issue Type |
| Â | |
Labels |
| Array<String> | Â |
Last Comment |
| Â | |
Original Estimate |
| Number (Duration) | Â |
Priority |
| Text | Â |
Project |
| Â | |
Remaining Estimate |
| Number (Duration) | Â |
Reporter |
| Â | |
Resolution |
| Text | Â |
Resolved |
| Number (Date/Time) | Can also use: resolutionDate |
Sprint |
| Â | |
Status |
| Â | |
Status Category |
| Text | Â |
Summary |
| Text | Â |
Time Spent |
| Number (Duration) | Â |
Updated |
| Number (Date/Time) | Â |
Work Logs (Jira) |
| Array<Work Logs (Jira)> | Â |
Work Logs (Tempo) |
| Array<Work Logs (Tempo)> | Â |
Structure Attributes
The following variables are automatically mapped to Structure attributes.
Variable Name | Type | Results |
---|---|---|
| Text | Returns the item type plus the item ID. Ex. "issue/10800" |
| Text | Returns the item type: issue, project, user, folder, etc. |
| Number (Integer) | Returns the level of the item within the structure's hierarchy. Can also use: depth |
| Number (Boolean) | Returns a '1' if the issue is Done; otherwise, '0' |
Â
Â