Versions Compared

Key

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

...

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

...