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 }}

...