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

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, //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		
    		},
    		...
    	},
    	...
    }



    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:5ca5b1469a000c1180956957"rvijji",
    			"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 }}

...