Versions Compared

Key

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

...

Panel
borderStylesolid

Checkboxes / Multi-select list

  • Description: A field of the type Checkboxes/Multi-select list, is an array of objects. Each object represents an option of the checkbox/select list.

  • Structure:

    Expand
    titleClick here to see the structure of a field of Checkbox/Multi-select list type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		{
        		"self":String, //URL of the choice
        		"value":String, //Value of the choice
        		"id":String //ID of the choice
    		},
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10200":
    		[
    			{
    				"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10100",
    				"value":"Option1",
    				"id":"10100"
    			},
    			{
    				//Second option and so on..
    			}
    		],
    		...
    	}
    	...
    }





  • Accessing a field of Checkboxes/Multi-select list type
    • The value of the last option:

      Code Block
      {{ issue.fields['Multi-select field'] | last | field("value") }}


    • Display the values of all selected options, separated by a comma:



      Code Block
      {{ issue.fields['Checkboxes field'] | join("," , "value") }}





    • Test whether a specific option is selected:

      Code Block
      {{ issue.fields["Checkboxes field"] | find({"value":"Impediment"}) != null }}



Panel
borderStylesolid

Radio buttons / Single select list

  • Description: A field of Radio buttons/Single select list type is an object describing the selected option.

  • Structure:

    Expand
    titleClick here to see the structure of a field of Radio buttons/Single select list type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxx":
    		{
        		"self":String, //URL of the choice
       			 "value":String, //Value of the choice
       			 "id":String //ID of the choice
    		},
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10203":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10103",
    			"value":"Option2",
    			"id":"10103"
    		},
    		...
    	}
    	...
    }





  • Accessing a field of Radio buttons/Single select list type
    • The value of the option: {{ issue.fields['Single select field'].value }}

...

Panel
borderStylesolid

Cascading

  • Description: A field of Cascading type is an object representing parent of the cascading with one field:

    • child, an object representing the child of the parent.
  • Structure:

    Expand
    titleClick here to see the structure of a field of Cascading type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		{
                "self":String, //URL of the parent of the cascading custom field.
                "value":String, //Value of the parent of the cascading custom field.
                "id":String, //ID of the custom field.
                "child":
                    {
                        "self":String, //URL of the child of the cascading custom field.
                        "value":String, //Value of the child of the cascading custom field.
                        "id":String //ID of the child of the cascading custom field.
                    }
            },
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10403":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10212",
    			"value":"1",
    			"id":"10212",
    			"child":
    			{
    				"self":"https://jmwe-test-2.atlassian.net/rest/api/2/customFieldOption/10215",
    				"value":"1.2",
    				"id":"10215"
    			}
    		},
    	...
    	}
    }





  • Accessing a field of Cascading type
    • The value of the parent of the cascading field: {{ issue.fields["Cascading field"] }}

    • The value of the child of the cascading field: {{ issue.fields["Cascading field"] | field("child.value) }}
    • Display the parent and child of the cascading field values separated by a comma:

      Code Block
      {{ issue.fields['Cascading field'].value }},{{ issue.fields['Cascading field'] | field(".child.value") }}


Groups

Panel
borderStylesolid

Single Group Picker

  • Description: A field of Single group picker type is an object that represents the selected group

  • Structure:

    Expand
    titleClick here to see the structure of a field of SIngle group picker type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_xxxx":
    		{
                "name":String, //Name of the Group.
                "self":String, //URL of the Group.
            },
    
    
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10300":
    		{
    			"name":"administrators",
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/group?groupname=administrators"
    		},
    		...
    	}
    	...
    }





  • Accessing a field of Single Group picker type:
    • Name of the group: {{ issue.fields['Single group picker field'].name }}

...

Panel
borderStylesolid

Single User picker

  • Description: A field of Single user picker type field is an object that represents the selected user.

  • Structure:

    Expand
    titleClick here to see the structure of a field of single user picker type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_xxxxx":
    		{
    			"self":String, //URL of the user
           		"nameaccountId": String, //NameAccountId of the user
            	"keyemailAddress":String, //KeyEmail ID of the user
            	"emailAddressavatarUrls":String, //Email ID of the user
     
            	{
          	"avatarUrls":
            	{
                	"48x48":String, //URL of the user
                	"24x24":String, //URL of the user
                	"16x16":String, //URL of the user
                	"32x32":String, //URL of the user
           		},
            	"displayName":String, //Display name of the user
            	"active":Boolean, //True when the user is active
            	"timeZone":String, //Time zone of the user
    			"accountType": String //Account type		
    		},
    		...
    	},
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"customfield_10058":
    		{
    			"self": "https://jmwe-test-2validationenvironment.atlassian.net/rest/api/2/user?usernameaccountId=rvijji5ca5b1469a000c1180956957",
    			"nameaccountId":"rvijji", 			"key"accountId:"rvijji5ca5b1469a000c1180956957",
    			"emailAddress":"rvijji@innovalog.com",
    			"avatarUrls":
    			{
    				"48x48":"https://jmwe-test-2.atlassian.net/secure/useravatar?avatarId=10337",
    				"24x24":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=small&avatarId=10337",
    				"16x16":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=xsmall&avatarId=10337",
    				"32x32":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=medium&avatarId=10337"
    			},
    			"displayName":"Radhika Vijji",
    			"active":true,
    			"timeZone":"Europe/Berlin",
    			"accountType": "atlassian"
    		},
    		...
    	},
    	...
    }





  • Accessing a field of Single user picker type
    • Display name of the user: {{ issue.fields['Single user type field'].displayName }}

...

Panel
borderStylesolid

Multi-user picker

  • Description: A field of Multi-user picker type is an array of objects. Each object represents a single user.

  • Structure:

    Expand
    titleClick here to see the structure of a field of Multi -user picker type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_xxxxx":
    		[
    			{
    				"self":String, //URL of the user
           			"nameaccountId":String, //Name of the user
            		"key":String, //KeyAccountId of the user
            		"emailAddress":String, //Email ID of the user
            		"avatarUrls":
            		{
                		"48x48":String, //URL of the user
                		"24x24":String, //URL of the user
                		"16x16":String, //URL of the user
                		"32x32":String, //URL of the user
    	       		},
        	    	"displayName":String, //Display name of the user
            		"active":Boolean, //True when the user is active
            		"timeZone":String, //Time zone of the user
    				"accountType": String //Account type 
    			},
    			{
    				//Second user and so on.
    			}
    		],
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"customfield_10059":
    		[
    			{
    				"self": "https://jmwe-test-2.atlassian.net/rest/api/2/user?usernameaccountId=rvijji5ca5b1469a000c1180956957",
    				"nameaccountId":"rvijji", 				"key":"rvijji"accountId:5ca5b1469a000c1180956957",
    				"emailAddress":"rvijji@innovalog.com",
    				"avatarUrls":
    				{
    						"48x48":"https://jmwe-test-2.atlassian.net/secure/useravatar?avatarId=10337",
    					"24x24":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=small&avatarId=10337",
    					"16x16":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=xsmall&avatarId=10337",
    					"32x32":"https://jmwe-test-2.atlassian.net/secure/useravatar?size=medium&avatarId=10337"
    				},
    				"displayName":"Radhika Vijji",
    				"active":true,
    				"timeZone":"Europe/Berlin",
    				"accountType": "atlassian"
    			},
    		],
    		...
    	}
    	...
    }






  • Accessing a field of multi-user type
    • Display the users' username separated by a comma: {{ issue.fields['Multi user type field'] | join("," , "nameaccountId") }}

Versions

Panel
borderStylesolid

Single version picker

  • Description: A field of Single version picker type is an object that represents a single selected version.

  • Structure:

    Expand
    titleClick here to see the structure of a field of single version type


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
        ...
        ...
        "fields":
        {
            ...
            ...
            "customfield_xxxxx":
            {
            	"self":String, //URL of the versions
                "id":String, //ID of the version
                "description": String, //Description of the version
                "name":String, //Name of the version
                "archived":Boolean, //True when archived
                "released":Boolean, //True when released
                "releaseDate":String //Release date of the version
            },
    		...
        }
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
        ...
        ...
        "fields":
        {
            ...
            ...
            "customfield_10025":
            {
     			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/version/10601",
                "id":"10601",
                "description":"Trial Version",
                "name":"2",
                "archived":false,
                "released":true,
                "releaseDate":"2016-10-06"
            },
    		...
        },
    	...
    }





  • Accessing a field of Single Version picker type
    • Name of the version: {{ issue.fields['Single version picker field'].name }}

...