---
title: "Issue and Transition Data in Nunjucks"
canonical: "https://support.appfire.com/space/JMWEC/465373107/Issue%20and%20Transition%20Data%20in%20Nunjucks"
format: markdown
---
> Macro (aura-html)

> Macro (excerpt)
> 
> This document explains how to access the details of *issue* and *transition* objects, such as those available through the [issue](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811) and [transition](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465503811) variables. To see an example of the structure of an issue go to **<base_URL_of_Jira>/rest/api/latest/issue/{issueKey}**. The fields displayed through this REST API actually depend on the fields set on the issue.


Structure of an issue object

An issue object consists of the issue key and a collection of fields. The structure of the issue object (such as those available through the `issue`, `sourceIssue` and `linkedIssue` variables) is the same as that returned by the **/rest/api/latest/issue** REST resource documented **[here](https://docs.atlassian.com/jira/REST/cloud/#api/2/issue-getIssue)**. 

> Macro (panel)
> 
> #### issue object
> 
> - **Description**: The *issue* object is an object with the following fields.
> - **Structure** :
> 
> **Accessing issue details using Nunjucks**: 
> 
> - Key of the issue : `{{issue.key}}`
> - ID of the issue : `{{issue.id}}`
> - [Standard Jira fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/466225701)
> - [Predefined Custom Fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465242312)
> - [User-created custom fields](https://appfire.atlassian.net/wiki/spaces/JMWEC/pages/465505179)

## Structure of the `transition` variable

The `transition` variable describes the current workflow transition. You might want to look at the log entries of a post-function execution to see the structure. The transition of an issue consists of the following fields :

> ℹ️ #### transitionName
> ℹ️ 
> ℹ️ - **Description** : The name of the current transition.
> ℹ️ - **Structure** :
> ℹ️ - **Access the *****transitionName***** field **:** **
> ℹ️   - Name of the transition - `{{transition.transitionName}}`

> ℹ️ #### transitionId
> ℹ️ 
> ℹ️ - **Description** : The ID of the current transition.
> ℹ️ - **Structure** :
> ℹ️ - **Accessing the *****transitionId***** field **:** **
> ℹ️   - `{{transition.transitionId}}`

> ℹ️ #### from_status
> ℹ️ 
> ℹ️ - **Description** : The status from which the current transition starts.
> ℹ️ - **Structure** :
> ℹ️ - **Accessing the *****from_status***** field **:** **
> ℹ️   - `{{transition.from_status}}`

> ℹ️ #### to_status
> ℹ️ 
> ℹ️ - **Description** : The status to which the current transition leads
> ℹ️ - **Structure** :
> ℹ️ - **Accessing the *****to_status***** field **:** **
> ℹ️   - `{{transition.to_status}}`

> ℹ️ #### workflowName
> ℹ️ 
> ℹ️ - **Description** : The name of the workflow the transition belongs to.
> ℹ️ - **Structure** :
> ℹ️   **Accessing the *****workflowName***** field **:** **
> ℹ️   - `{{transition.workflowName}}`

> ℹ️ #### workflowId
> ℹ️ 
> ℹ️ - **Description** : The ID of the workflow the transition belongs to.
> ℹ️ - **Structure** :
> ℹ️ - **Accessing the *****workflowID***** field **:** **
> ℹ️   - `{{transition.workflowId}}`