Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Predefined custom fields

This page explains how to access the value of Predefined custom 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 any field of an issue by its Field name or ID. Click here to know how to find the ID of custom fields.

Example:

{{ issue.fields.Account.name }} and {{ issue.fields.customfield_10003.name }}, both return the name of the selected Tempo account.

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['Capture for JIRA Browser'] }}

{{ issue.fields['[CHART] Date of First Response'}}

In this page: 

Capture for JIRA fields

Capture for JIRA Browser

  • Field name: Capture for JIRA Browser

  • Description: The Capture for JIRA Browser field is a string representation of a multi-line text describing the browser of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA Browser field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA Browser. Browser of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10008":"Chrome 53.0.2785.143",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA Browser field
    • Capture for JIRA Browser field of the issue: {{ issue.fields['Capture for JIRA Browser'] }}

Capture for JIRA Document Mode

  • Field name: Capture for JIRA Document Mode

  • Description: The Capture for JIRA Document Mode field is a string representation of a multi-line text describing the document mode of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA Document mode field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA Document Mode. Document Mode of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10013":"Standards (CSS1Compat)",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA Document Mode field
    • Capture for JIRA Document mode field of the issue: {{ issue.fields['Capture for JIRA Document Mode'] }}

Capture for JIRA jQuery Version

  • Field name: Capture for jQuery Version

  • Description: The Capture for JIRA jQuery Version field is a string representation of a multi-line text describing the jQuery version of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA jQuery version field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA jQuery Version. jQuery Version of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10012":"2.2",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA jQuery Version field
    • Capture for JIRA jQuery version field of the issue: {{ issue.fields['Capture for jQuery Version'] }}

Capture for JIRA Operating System

  • Field name: Capture for JIRA Operating System

  • Description: The Capture for JIRA Operating system field is a string representation of a multi-line text describing the operating system of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA Operating system field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA Operating System. Operating System of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10009":"Windows NT 10.0",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA Operating System field
    • Capture for JIRA Operating System field of the issue: {{ issue.fields['Capture for JIRA Operating System'] }}

Capture for JIRA Screen Resolution

  • Field name: Capture for JIRA Screen Resolution

  • Description: The Capture for JIRA Screen Resolution field is a string representation of a multi-line text describing the screen resolution of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA Screen Resolution field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA Screen Resolution. Screen Resolution of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10011":"1366x768",
    		...
    	}
    	...
    }
  • Accessing the Capture for Screen resolution field
    • Capture for JIRA Screen resolution field of the issue: {{ issue.fields['Capture for JIRA Screen Resolution'] }}

Capture for JIRA URL

  • Field name: Capture for JIRA URL

  • Description: The Capture for JIRA URL field is a string representation of a multi-line text describing the URL of the page captured.

  • Structure:

     Click here to see the structure of the Capture for JIRA URL field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA URL. URL of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10010":"https://jmwe-test-2.atlassian.net/plugins/servlet/upm/marketplace/search?q=capture%20for%20jira",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA URL field
    • Capture for JIRA URL field of the issue: {{ issue.fields['Capture for JIRA URL'] }}

Capture for JIRA User Agent

  • Field name: Capture for JIRA User Agent

  • Description: The Capture for JIRA User agent field is a string representation of a multi-line text describing the user agent of the page captured.

  • Structure:

     Click here to see the structure of the Capture for User agent field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Capture for JIRA User Agent. User Agent of the page captured.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10007":"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143  
            Safari/537.36",
    		...
    	}
    	...
    }
  • Accessing the Capture for JIRA User Agent field
    • Capture for JIRA User Agent field of the issue: {{ issue.fields['Capture for JIRA User Agent'] }}

Raised during

  • Field name: Raised during

  • Description: The Raised during field is a string representation of a number which is the ID of the session the issue was raised in.

  • Structure:

     Click here to see the structure of the Raised during field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Raised during. Session in which the issue was created using Capture for JIRA.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10006":"10030",
    		...
    	}
    	...
    }
  • Accessing the Raised during field
    • Raised during field of the issue: {{ issue.fields['Raised during'] }}

Test sessions

  • Field name: Test sessions

  • Description: The Test sessions field is a string representation of a number which is the ID of the session issue belongs to.

  • Structure:

     Click here to see the structure of the Test Sessions field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Test Sessions. Test Sessions to which the current issue belongs to.
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10005":"10030",
    		...
    	}
    	...
    }
  • Accessing the Test Sessions field
    • Test Sessions field of the issue: {{ issue.fields['Test sessions'] }}

Testing status

  • Field name: Testing status

  • Description: The Testing status field is a string representation of a text describing the status of the issue in a session.

  • Structure:

     Click here to see the structure of the Testing status field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Testing status
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10014":"Not started",
    		...
    	}
    	...
    }
  • Accessing the Testing status field
    • Testing status field of the issue: {{ issue.fields.customfield_xxxxx }}

Jira Software fields

Epic Color

  • Field name: Epic Color

  • Description: The Epic color field is a string representation of a text describing the color of the Epic.

  • Structure:

     Click here to see the structure of the Epic color field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Color of the Epic
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10021":"ghx-label-2",
    		...
    	}
    	...
    }



  • Accessing the Epic color field
    • Epic color: {{ issue.fields['Epic Color'] }}

  • Field name: Epic Link

  • Description: The Epic link field is a string representation of the issue key.

  • Structure:

     Click here to see the structure of the Epic link field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //KEY of the Epic
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10018":"TEST-38",
    		...
    	}
    	...
    }



  • Accessing the Epic Link field
    • Epic link: {{ issue.fields['Epic Link'] }}

Epic Name

  • Field name: Epic Name

  • Description: The Epic name field is a string representation of a multi-line text describing the name of the Epic.

  • Structure:

     Click here to see the structure of the Epic name field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //Name of the Epic
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10020":"An Epic",
    		...
    	}
    	...
    }
  • Accessing the Epic name field
    • Epic name: {{ issue.fields['Epic Name'] }}

Epic Status

  • Field name: Epic Status

  • Description: The Epic status field is an object representing the status of the Epic.

  • Structure:

     Click here to see the structure of the Epic status field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		{
    			"self":String, //URL of the Epic status
    			"value":String, //Value of the Epic status
    			"id":String //ID of the Epic status
    		},
    		...
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10019":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10000",
    			"value":"To Do",
    			"id":"10000"
    		},
    		...
    	}
    	...
    }
  • Accessing the Epic status field
    • Epic status value: {{ issue.fields['Epic Status'].value }}

    • Epic status ID: {{ issue.fields['Epic Status'].id }}

Flagged

  • Field name: Flagged

  • Description: The Flagged field is an array of objects. Each object represents an option of the checkbox. By default, there's only one possible value: Impediment

  • Structure:

     Click here to see the structure of the Flagged field
    Structure
    "issue":
    {
        ...
        ...
        "fields":
        {
            ...
            ...
    		customfield_xxxxx
    		[
            	{
                	"self":String, //URL of the choice
                	"value":String, //Value of the choice
                	"id":String //ID of the choice
    			}
    		]
          },
            ...
        }
        ...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_11300":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10600",
    			"value":"Impediment",
    			"id":"10600"
    		},
    		...
    	}
    	...
    }
  • Accessing the Flagged field
    • The value of the last option selected in the Flagged field

      {{ issue.fields["Flagged"] | last | field("value") }}
    • Display the values of all selected options, separated by a comma:

      {{ issue.fields["Flagged"] | join(",","value") }}
    • Test whether the issue has been flagged:

      {{ issue.fields["Flagged"] | find({"value":"Impediment"}) != null }}

Sprint

  • Field name: Sprint

  • Description: The Sprint field is an array of strings.

  • Structure:

     Click here to see the structure of the Sprint field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		[
    			"String"
    		]
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10017":
    		[
    			"com.atlassian.greenhopper.service.sprint.Sprint@16e2448
    			[
    				id=3,
    				rapidViewId=3,
    				state=FUTURE,
    				name=CFLIORT Sprint 3,
    				goal=<null>,
    				startDate=<null>,
    				endDate=<null>,
    				completeDate=<null>,
    				sequence=3
    			]"
    		]
    		...
    	}
    	...
    }
  • Accessing the Sprint field: Because each string is an internal representation of a Sprint, accessing this field is not of much use.

Story Points

  • Field name: Story Points

  • Description: The Story points field is a string representation of a number describing the number of story points.

  • Structure:

     Click here to see the structure of the Story points field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": Number, //Story points
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10022":5.0
    		...
    	}
    	...
    }
  • Accessing the Story points field
    • Story points of the issue: {{ issue.fields.customfield_xxxxx }}

    • Increase the story points by 10:

      {% set SP = issue.fields['Story Points'] %}
      {{ SP + 10 }}

Jira Service Desk fields

Approvals

  • Field name: Approvals

  • Description: The Approvals field is a string representation of a multi-line text describing the search options for Jira Service Desk approvals information.

  • Structure:

     Click here to see the structure of the Approvals field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String,
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10002":"com.atlassian.servicedesk.plugins.approvals.internal.customfield.ApprovalsCFValue@195c4e9",
    		...
    	}
    	...
    }
  • Accessing the Approvals field: Accessing this field is not of much use.

Approvers

  • Field name: Approvers

  • Description: The Approvers field is an array of object. Each object represents an approver.

  • Structure:

     Click here to see the structure of the Approvers field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		[
    			{
    				"self": String, //URL of the approver
    				"accountId": String, //AccountId of the approver
    				"emailAddress": String, //Email address of the approver
    				"avatarUrls": //URLs of approver avatar
    				{
    					"48x48": String,
    					"24x24": String,
    					"16x16": String,
    					"32x32": String
    				},
    				"displayName": String, //Display name of the approver
    				"active": Boolean, //True if approver is active
    				"timeZone": String, //Timezone of the approver
    				"accountType": String //Account type
    			},
    			{
    				//Second approver details and so on..
    			}			
    		],
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10100":
    		[
    			{
    				"self": "https://validationenvironment.atlassian.net/rest/api/2/user?accountId=5ca5b1469a000c1180956957",
    				"accountId": "accountId:5ca5b1469a000c1180956957",
    				"emailAddress":"c@gmail.com",
    				"avatarUrls":
    				{
    					"48x48":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=48",
    					"24x24":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=24",
    					"16x16":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=16",
    					"32x32":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=32"
    				},
    				"displayName":"Corners",
    				"active":true,
    				"timeZone":"Europe/Berlin",
    				"accountType": "atlassian"
    			},
    			{
    				//Second approver details and so on..
    			},			
    		],
    		...
    	}
    	...
    }
  • Accessing the Approvers field
    • Name of the last approver of the issue: {{ issue.fields.Approvers | last |field("accountId") }}

    • On reopening an issue, set the assignee to the user selected on the transition screen, only if the user belongs to the approvers. If not, set the assignee field to the first approver:

      Example
      {% set assignee = issue.fields.Assignee.accountId %}
      {% set users = issue.fields.Approvers %}
      {% set var = false %}
      {% for user in users %}
      	{% if user.accountId == assignee %}
      		{% set var = true %}
      	{%endif%}
      {% endfor %}
      	{% set var = true %}
      {% if not var %}
      	{%set firstuser = users | first %}
      	{{ firstuser.accountId }}
      {%endif%}

      Select Ignore empty value option in the post-function configuration, so as to not clear the field if the value is empty or null.

    • Display all the users in the approvers field with their display name and email address separated by a hyphen:

      {% set users = issue.fields.Approvers %}
      {% for user in users %}
      	{{ user.displayName }} - {{ user.emailAddress }}
      {% endfor %}

Customer Request Type

  • Field name: Customer Request Type

  • Description: The Customer request type field represents an object describing the information about the Service Desk used to create the ticket.

  • Structure:

     Click here to see the structure of the Customer request type fields
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		{
    			"_links":
    			{
    				"jiraRest": String, // URL of the rest api
    				"web": String, //URL of the ticket
    				"self": String //URL of the request
    			},
    			"requestType":
    			{
    				"id": String, //ID of the request type
    				"_links":
    				{
    					"self": String //URL of the request type
    				},
    				"name": String, //Name of the request type
    				"description": String, //Description of the request type
    				"helpText": String, //Help text of the request type
    				"serviceDeskId": String, //Service desk ID
    				"groupIds":[String], //Array of group ID's
    				"icon":
    				{
    					"id": String, //ID of the icon
    					"_links":
    					{
    						"iconUrls":
    						{
    							"48x48": String, //URL of the icon avatar
    							"24x24": String, //URL of the icon avatar
    							"16x16": String, //URL of the icon avatar
    							"32x32": String //URL of the icon avatar
    						}
    					}
    				}
    			},
    		},
    		...
    	},
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10023":
    		{
    			"_links":
    			{
    				"jiraRest":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/30333",
    				"web":"https://jmwe-test-2.atlassian.net/servicedesk/customer/portal/3/PSDF-25",
    				"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/request/30333"
    			},
    			"requestType":
    			{
    				"id":"18",
    				"_links":
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/servicedesk/3/requesttype/18"
    				},
    				"name":"Get IT help",
    				"description":"Get assistance for general IT problems and questions [example]",
    				"helpText":"Get assistance for general IT problems and questions [example]",
    				"serviceDeskId":"3",
    				"groupIds":["7"],
    				"icon":
    				{
    					"id":"10527",
    					"_links":
    					{
    						"iconUrls":
    						{
    							"48x48":"https://jmwe-test-2.atlassian.net/secure/viewavatar?avatarType=SD_REQTYPE&size=large&avatarId=10527",
    							"24x24":"https://jmwe-test-2.atlassian.net/secure/viewavatar?avatarType=SD_REQTYPE&size=small&avatarId=10527",
    							"16x16":"https://jmwe-test-2.atlassian.net/secure/viewavatar?vatarType=SD_REQTYPE&size=xsmall&avatarId=10527",
    							"32x32":"https://jmwe-test-2.atlassian.net/secure/viewavatar?	
    							avatarType=SD_REQTYPE&size=medium&avatarId=10527"
    						}
    					}
    				}
    			},
    		},
    		...
    	},
    }
  • Accessing the Customer request type field
    • Name of the Customer request type: {{ issue.fields['Customer Request Type'].requestType.name }}

    • Description of the Customer request type: {{ issue.fields['Customer Request Type'].requestType.description }}

Organizations

  • Field name: Organizations

  • Description: The Organizations is a collection of objects. Each object represents an Organization.

  • Structure:

     Click here to see the structure of the Organizations field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    
    		"customfield_xxxxx":
    		[
    			{
    				"id":String, //Id of the organization
    				"name":String, //Name of the organization
    				"_links":
    				{
    					"self":String, //URL of the link to the Organization
    				}
    			},
    			...
    		]
    	...
    	...
    	},
    
    
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10800":
    		[
    			{
    				"id":"1",
    				"name":"Test",
    				"_links":
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/organization/1"
    				}
    			},
    			{
    				"id":"2",
    				"name":"Test1",
    				"_links":
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/organization/2"
    				}
    			}
    		]
    	...
    	...
    	},
    }
  • Accessing the Organizations field
    • Name of the first Organization the issue belongs to: {{ issue.fields.Organizations | first | field("name") }}

Request participants

  • Field name: Request participants

  • Description: The Request Participants is an array of objects. Each object represents a participant.

  • Structure:

     Click here to see the structure of the Request Participants field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		[
    			{
    				"self": String, //URL of the participant"
    				accountId": String, //AccountId of the participant
    				"emailAddress": String, //Email address of the participant
    				"avatarUrls": //URLs of participant avatar
    				{
    					"48x48": String,
    					"24x24": String,
    					"16x16": String,
    					"32x32": String
    				},
    				"displayName": String, //Display name of the participant
    				"active": Boolean, //True if participant is active
    				"timeZone": String, //Timezone of the participant
    				"accountType": String //Account type 
    			},
    			{
    				//Second participant details and so on..
    			}			
    		],
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10100":
    		[
    			{
    				"self": "https://validationenvironment.atlassian.net/rest/api/2/user?accountId=5ca5b1469a000c1180956957",
    				"accountId": "accountId:5ca5b1469a000c1180956957",
    				"emailAddress":"c@gmail.com",
    				"avatarUrls":
    				{
    					"48x48":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=48",
    					"24x24":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=24",
    					"16x16":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=16",
    					"32x32":"https://secure.gravatar.com/avatar/316a26014c6e203f76d222f326462753?d=mm&s=32"
    				},
    				"displayName":"Corners",
    				"active":true,
    				"timeZone":"Europe/Berlin",
    				"accountType": "atlassian"
    			},
    			{
    				//Second participant details and so on..
    			},			
    		],
    		...
    	}
    	...
    }
  • Accessing the Request Participants field
    • Name of the first participant: {{ issue.fields['Request participants'] | first | field("accountId") }}

Satisfaction

  • Field name: Satisfaction

  • Description: The Satisfaction field is a string representation of a multi-line text describing the request feedback in Service Desk requests.

  • Structure:

     Click here to see the structure of the Satisfaction field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": String,
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10025":"com.atlassian.servicedesk.internal.api.customfields.feedback.RequestFeedbackCFValue@d3f24"
    	...
    	}
    	...
    }
  • Accessing the Satisfaction fieldAccessing this field is not of much use.

Satisfaction date

  • Field name: Satisfaction date

  • Description: The Satisfaction date field is a string representation of a datetime.

  • Structure:

     Click here to see the structure of the Satisfaction date field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": String, //Satisfaction date
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10026":"2016-10-24T13:23:11.222+0200", //Satisfaction date
    		...
    	}
    	...
    }
  • Accessing the Satisfaction date field
    • Satisfaction date of the issue: {{ issue.fields['Satisfaction date'] }}

You can use the date filter to manipulate and/or format the value

Time to first response

  • Field name: Time to first response

  • Description: The 'Time to first response' field is an object with the following field:

    • completedCycles, containing an array of objects. Each object represents a completed cycle.

  • Structure:

     Click here to see the structure of the Time to first response field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		{
    			"id": String, //ID of the SLA
    			"name": String, //Name of the SLA
    			"_links":
    			{
    				"self": String //URL of the SLA
    			},
    			"completedCycles":
    			[
    				{
    					"startTime":
    					{
    						"iso8601": String, //Time stamp in ISO 8601
    						"jira": String, //Jira time
    						"friendly": String, //Start time in a friendly format
    						"epochMillis": Number //Stop time in milli seconds
    					},
    					"stopTime":
    					{
    						"iso8601": String, //Time stamp in ISO 8601
    						"jira": String, //Jira time
    						"friendly": String, //Stop time in a friendly format
    						"epochMillis": Number //Stop time in milli seconds
    					},
    					"breached": Boolean, //False when not breached
    					"goalDuration":
    					{
    						"millis": Number, //Goal duration in milli seconds
    						"friendly": String //Goal duration in friendly format
    					},
    					"elapsedTime":
    					{
    						"millis": Number, //Elapsed time in milli seconds
    						"friendly": String //Elapsed time in friendly format
    					},
    					"remainingTime":
    					{
    						"millis": Number, //Remaining time in milli seconds
    						"friendly": String //Remaining time in friendly format
    					}
    				}
    			]
    		},
    	...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10102":
    		{
    			"id":"5",
    			"name":"Time to first response",
    			"_links":
    			{
    				"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/request/30333/sla/5"
    			},
    			"completedCycles":
    			[
    				{
    					"startTime":
    					{
    						"iso8601":"2016-10-25T07:15:30+0200",
    						"jira":"2016-10-25T07:15:30.728+0200",
    						"friendly":"Today 7:15 AM",
    						"epochMillis":1477372530728
    					},
    					"stopTime":
    					{
    						"iso8601":"2016-10-25T07:16:01+0200",
    						"jira":"2016-10-25T07:16:01.476+0200",
    						"friendly":"Today 7:16 AM",
    						"epochMillis":1477372561476
    					},
    					"breached":false,
    					"goalDuration":
    					{
    						"millis":14400000,
    						"friendly":"4h"
    					},
    					"elapsedTime":
    					{
    						"millis":0,
    						"friendly":"0m"
    					},
    					"remainingTime":
    					{
    						"millis":14400000,
    						"friendly":"4h"
    					}
    				}
    			]
    
    
    		},
    	...
    	}
    	...
    }
  • Accessing the Time to first response field

    • Remaining time of the last completed cycle of the 'Time to first response' SLA:

      {{ issue.fields['Time to first response'].completedCycles | last | field('remainingTime.friendly') }}

Time to resolution

  • Field name: Time to resolution

  • Description: The Time to resolution field is an object with the following field:

    • completedCycles, containing an array of objects. Each object represents a completed cycle.

  • Structure:

     Click here to see the structure of the Time to resolution field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10101":
    		{
    			"id": String, //ID of the SLA
    			"name": String, //Name of the SLA
    			"_links":
    			{
    				"self": String //URL of the SLA
    			},
    			"completedCycles":
    			[
    				{
    					"startTime":
    					{
    						"iso8601": String, //Time stamp in ISO 8601
    						"jira": String, //Jira time
    						"friendly": String, //Start time in a friendly format
    						"epochMillis": Number //Stop time in milli seconds
    					},
    					"stopTime":
    					{
    						"iso8601": String, //Time stamp in ISO 8601
    						"jira": String, //Jira time
    						"friendly": String, //Stop time in a friendly format
    						"epochMillis": Number //Stop time in milli seconds
    					},
    					"breached": Boolean, //False when not breached
    					"goalDuration":
    					{
    						"millis": Number, //Goal duration in milli seconds
    						"friendly": String //Goal duration in friendly format
    					},
    					"elapsedTime":
    					{
    						"millis": Number, //Elapsed time in milli seconds
    						"friendly": String //Elapsed time in friendly format
    					},
    					"remainingTime":
    					{
    						"millis": Number, //Remaining time in milli seconds
    						"friendly": String //Remaining time in friendly format
    					}
    				}
    			]
    		},
    	...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10101":
    		{
    			"id":"4",
    			"name":"Time to resolution",
    			"_links":
    			{
    				"self":"https://jmwe-test-2.atlassian.net/rest/servicedeskapi/request/30400/sla/4"
    			},
    			"completedCycles":
    			[
    				{
    					"startTime":
    					{
    						"iso8601":"2016-10-25T07:15:30+0200",
    						"jira":"2016-10-25T07:15:30.728+0200",
    						"friendly":"Today 7:15 AM",
    						"epochMillis":1477372530728
    					},
    					"stopTime":
    					{
    						"iso8601":"2016-10-25T07:16:01+0200",
    						"jira":"2016-10-25T07:16:01.476+0200",
    						"friendly":"Today 7:16 AM",
    						"epochMillis":1477372561476
    					},
    					"breached":false,
    					"goalDuration":
    					{
    						"millis":14400000,
    						"friendly":"4h"
    					},
    					"elapsedTime":
    					{
    						"millis":0,
    						"friendly":"0m"
    					},
    					"remainingTime":
    					{
    						"millis":14400000,
    						"friendly":"4h"
    					}
    				}
    			]
    		},
    	...
    	}
    	...
    }
  • Accessing the Time to resolution field

    • Goal duration of the last completed cycle of the 'Time to resolution' SLA:

      {{ issue.fields['Time to resolution'].completedCycles | last | field("goalDuration.friendly") }}
    • Start time of the first completed cycle of the 'Time to resolution' SLA:

      {{ issue.fields['Time to resolution'].completedCycles | first | field("startTime.friendly") }}

Portfolio for JIRA fields

Team

  • Field name: Team

  • Description: The Portfolio Team field is a string representing the ID of the Portfolio team.

  • Structure:

     Click here to see the structure of the Portfolio Team field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":String, //ID of the Portfolio team
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10900":"2",
    		...
    	}
    	...
    }
  • Accessing the Portfolio Team field
    • Portfolio Team field: {{ issue.fields.Team }}

Tempo fields

Iteration

  • Field name: Iteration

  • Description: The Iteration field is a Tempo planner field

  • Structure:

     Click here to see the structure of the Iteration field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": String,
    		...
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10004": "3",
    		...
    	}
    	...
    }
  • Accessing the Iteration field
    • Iteration: {{ issue.fields.Iteration}}

Team

  • Field name: Team

  • Description: The Team field is a string representation of a number describing the ID of the tempo team.

  • Structure:

     Click here to see the structure of the Team field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": String, //ID of the team
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10015":"2",
    	...
    	}
    	...
    }
  • Accessing the Team field
    • Tempo team ID: {{ issue.fields.Team }}

Tempo Account

  • Field name: Account

  • Description: The Tempo Account field is an object describing the Tempo account of the issue.

  • Structure:

     Click here to see the structure of the Account field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		{
    			"self":String, //URL of the account
    			"id": String, //ID of the account
    			"key": String, //Key of the account
    			"name": String, //Name of the account
    		},
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10003":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/tempo-accounts/1/account/1",
    			"id":"1",
    			"key":"ACCOUNT1",
    			"name":"Account1"
    		},
    		...
    	}
    	...
    }



  • Accessing the Account field
    • Name of the tempo account: {{ issue.fields.Account.name }}

    • ID of the tempo account: {{ issue.fields.Account.id }}

Others

[CHART] Date of First Response

  • Field name: [CHART] Date of First Response

  • Description: The [Chart] Date of First Response field is a string representation of a date.

  • Structure:

     Click here to see the structure of the [Chart] Date of First Response field
    Structure
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx": String, //Date
    		...
    	}
    	...
    }
    Example
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10000": "2016-08-05",
    		...
    	}
    	...
    }



  • Accessing the [Chart] Date of First Response field
    • [Chart] Date of First Response: {{ issue.fields['[CHART] Date of First Response'] }}

You can use the date filter to manipulate and/or format the value