Versions Compared

Key

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

...

Panel
borderStylesolid

Assignee

  • Field name : Assignee

  • Key: assignee

  • Description : The Assignee field is an object that represents the user who this issue is assigned to.

  • Structure :

    Expand
    titleClick here to see the structure of Assignee field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"assignee": 
    		{
    			"self":String, //URL of the user
    			"nameaccountId":String, //Name of the user
    			"key":String,
    //Key of the user
    			"emailAddress":String, //Email ID of the user
    			"avatarUrls": //URLs of assignee avatar
    			{
    				"48x48":String,
    				"24x24":String,
    				"16x16":String,
    				"32x32":String,
    			},
    			"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":
    	{
    		....
    		....
    		"assignee":
    		{
    			"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 the Assignee field
    • Username AccountId of the Assignee : {{issue.fields.assignee.nameaccountId}}
    • Timezone of the assignee : {{issue.fields.assignee.timeZone}}

...

Panel
borderStylesolid

Attachments

  • Field name : Attachment

  • Key: attachment

  • Description : Attachment is an array of objects. Each object represents a single attachment.

  • Structure :

    Expand
    titleClick here to see the structure of Attachments


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"attachment": 
            [
                {
                    "self":String, //URL of the attachment
                    "id":String, //ID of the attachment
                    "filename":String, //Name of the attachment
                    "author": //Author of the attachment
                    {
    		                    "self":String, //URL of the author
           					"nameaccountId":String, //Name of the author
            			"key":String, //Key of the
    author      				"emailAddress":String, //Email ID of the author
          				"avatarUrls":
    				     {
               				"48x48":String, //URL of the author
                			"24x24":String, //URL of the author
                			"16x16":String, //URL of the author
                			"32x32":String, //URL of the author
            			},
            			"displayName":String, //Display name of the author
            			"active":Boolean, //True when the author is active
            			"timeZone":String, //Time zone of the author
    					"accountType": String //Account type 
                    },
                    "created":String, //Attachment created timestamp
                    "size":Number, //Size of the attachment
                    "mimeType":String, //Type of the attachment
                    "content":String, //Content of the attachment
                    "thumbnail":String //Thumbnail of the attachment
                },
            ],
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"attachment":
    		[
    			{
    				"self":"https://jmwe-test-2.atlassian.net/rest/api/2/attachment/11001","id":"11001",
    				"filename":"one.png",
    				"author":
    				{
    					"self": "https://jmwe-test-2validationenvironment.atlassian.net/rest/api/2/user?usernameaccountId=rvijji5ca5b1469a000c1180956957",
    					"nameaccountId":"rvijji",
    					"key":"rvijji" String,
    					"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": String //Account type 
    					
    				},
    				"created":"2016-10-13T12:33:50.472+0200",
    				"size":31721,
    				"mimeType":"image/png",
    				"content":"https://jmwe-test-2.atlassian.net/secure/attachment/11001/one.png",
    				"thumbnail":"https://jmwe-test-2.atlassian.net/secure/thumbnail/11001/_thumb_11001.png"
    			}
    			{
    				//Second attachment and so on..
    				}
    		],
    		...
    	}
    	...
    }





  • Accessing the Attachment field

    • Size of the last attachment :

      Code Block
      {{ issue.fields.attachment | last | field("size")%}

      where '|' is the pipe operator, 'last' and 'field' are filters. See Nunjucks annotations for more filters.

    • Name of the Author of the first attachment : {{ issue.fields.attachment[0].author.nameaccountId}}


Panel
borderStylesolid

Created

  • Field name : Created

  • Key: created

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

  • Structure :

    Expand
    titleClick here to see the structure of the Created field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"created":String, //Created datetime stamp
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"created":"2016-10-13T08:10:16.644+0200",
    		...	
    	}
    	...
    }





  • Accessing the Created fields
    • Created date of the issue : {{ issue.fields.created }}

    • Format the created date : {{ issue.fields.created | date('fromNow') }}


Note

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


...

Panel
borderStylesolid

Creator

  • Field name : Creator

  • Key: creator

  • Description : The Creator field is an object that represents the user who created this issue.

  • Structure :

    Expand
    titleClick here to see the structure of Creator field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"creatorassignee": 
    		{
    			"self":String, //URL of the user
    			"nameaccountId":String, //Name of the user
    			"key":String, //Key of the
    user
    			"emailAddress":String, //Email ID of the user
    			"avatarUrls": //URLs of creatorassignee avatar
    			{
    				"48x48":String,
    				"24x24":String,
    				"16x16":String,
    				"32x32":String,
    			},
    			"displayName":String, //Display name of the user
    			"active":Boolean, //True when the user is active
    			"timeZone":String, //Time zone of the user user
    			"accountType": String
    		},
    	}
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"creatorassignee":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/user?username=rvijji",
    			"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 the Creator field
    • Name of the Creator of the issue : {{ issue.fields.creator.name accountId }}

    • Display name of the creator : {{ issue.fields.creator.displayName }}

...

Panel
borderStylesolid

Comments

  • Field name : Comment

  • Key: comment

  • Description : The Comments field is an object with two fields:

    • comments, containing an array of objects. Each object represents a single comment.

    • total, showing the number of comments
  • Structure :

    Expand
    titleClick here to see the structure of Comments


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"comment":
    		{
    			"comments":
    			[
    				{
    					"self":String, //URL of the first comment
                        "id":String, //ID of the first comment
                        "author": //The "Author" field is an object with the following fields
    					{
    						"self":String, //URL of the author
           					"nameaccountId":String, //Name of the author
            				"key":String, //Key of the
    author      				   	"emailAddress":String, //Email ID of the author
          				  	"avatarUrls":
    				        {
               					"48x48":String, //URL of the author
                				"24x24":String, //URL of the author
                				"16x16":String, //URL of the author
                				"32x32":String, //URL of the author
            				},
            				"displayName":String, //Display name of the author
            				"active":Boolean, //True when the author is active
            				"timeZone":String, //Time zone of the author
    						"accountType": String //Account type
    					},
    					"body":"1",
    					"updateAuthor":
    					{
    						"self":String, //URL of the update author
           					"nameaccountId":String, //Name of the update author
            				"key":String, //KeyAccountId of the update author
         				   	"emailAddress":String, //Email ID of the update author
          				  	"avatarUrls":
    				        {
               					"48x48":String, //URL of the update author
                				"24x24":String, //URL of the update author
                				"16x16":String, //URL of the update author
                				"32x32":String, //URL of the update author
            				},
            				"displayName":String, //Display name of the update author
            				"active":Boolean, //True when the update authoris active
            				"timeZone":String, //Time zone of the update author
    						"accountType": String //Account type						
    					},
    					"created":String, //Time stamp when the comment is created
                        "updated":String, //Time stamp when the comment is updated
    				},
    				{
    					//Second comment and so on..
    				}
    			],
    			 "maxResults":Number, //Total number of comments
                "total":Number, //Total number of comments
                "startAt":Number //Number at which the comments started.
    		},
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		....
    		....
    		"comment":
    		{
    			"comments":
    			[
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/30102/comment/27600",
    					"id":"27600",
    					"author":
    					{
    						"self": "https://jmwe-test-2validationenvironment.atlassian.net/rest/api/2/user?username=rvijji",
    						"name":"rvijji?accountId=5ca5b1469a000c1180956957",
    						"keyaccountId": "rvijjiaccountId: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"
    					},
    					"body":"1",
    					"updateAuthor":
    					{
    						"self": "https://jmwe-test-2validationenvironment.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"
    					},
    					"created":"2016-10-13T12:02:41.802+0200",
    					"updated":"2016-10-13T12:02:41.802+0200"
    				},
    				{
    					//Second comment and so on..
    				}
    			],
    			"maxResults":2,
    			"total":2,
    			"startAt":0
    		},
    		...
    	}
    	...
    }





  • Accessing the Comments field

    • Number of comments on the issue : {{issue.fields.comment.total}}
    • Last Comment body :

      Code Block
      {{ issue.fields.comment.comments | last | field("body") }}

      where '|' is the pipe operator, 'last' and 'field' are filters. See Nunjucks annotations for more filters.

    • Name AccountId of the author of the first comment on the issue :

      Code Block
      {{ issue.fields.comment.comments | first | field("author.nameaccountId") }}

      where '|' is the pipe operator, 'first' and 'field' are filters. See Nunjucks annotations for more filters.

    • Email address of the author of the last comment on the issue :

      Code Block
      {{ issue.fields.comment.comments | last | field("author.emailAddress") }}

      where '|' is the pipe operator, 'last' and 'field' are filters. See Nunjucks annotations for more filters.

    • Display all the comments in a text field : {{ issue.fields.comment.comments | join("\n" , "body") }}

...

Panel
borderStylesolid

Original Estimate

  • Field name : Original Estimate

  • Key: timeoriginalestimate

  • Description : The Original Estimate field is a string representation of a number representing the original time estimate in seconds.

  • Structure :

    Expand
    titleClick here to see the structure of Original Estimate field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timeoriginalestimate": Number, //Original estimate in seconds
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timeoriginalestimate": 144000,
    		...
    	}
    	...
    }





  • Accessing the Original Estimate field
    • Original Estimate of the issue in seconds : {{ issue.fields.timeoriginalestimate }}

    • You can access the Original estimate from the Time tracking 138446084 field as well.


Panel
borderStylesolid

Parent

  • Field name : Parent

  • Key: parent

  • Description : The Parent field is an object representing the parent of the issue.

  • Structure :

    Expand
    titleClick here to see the structure of Parent field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"parent":
    		{
    			"id":String, //Id of the parent issue
    			"key":String, //Key of the parent issue
    			"self":String, //URL of the parent issue
    			"fields":
    			{
    				"summary":String, //Summary of the parent issue
    				"status":
    				{
    					"self":String, //URL of the status
    					"iconUrl":String, //Icon URL of the status
    					"name":String, //Name of the status
    					"id":String, //Id of the status
    					"statusCategory":
    					{
    						"self":String, //Status category of the status
    						"id":String, //ID of the status category
    						"key":String, //Key of the status category
    						"colorName":String, //Color of the status category
    						"name":String, //Name of the status category
    					}
    				}
    		...
    	},
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"parent":
    		{
    			"id":"34701",
    			"key":"TEST-860",
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/34701",
    			"fields":
    			{
    				"summary":"Parent Issue",
    				"status":
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/api/2/status/10000","description":"",
    					"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/status_generic.gif",
    					"name":"To Do",
    					"id":"10000",
    					"statusCategory":
    					{
    						"self":"https://jmwe-test-2.atlassian.net/rest/api/2/statuscategory/2",
    						"id":2,
    						"key":"new",
    						"colorName":"blue-gray",
    						"name":"To Do"
    					}
    				}
    		...
    		},
    	...
    	}
    ...
    }





  • Accessing the Priority Parent field
    • Summary of the parent issue : {{ issue.fields.parent.fields.priority.name summary }}

    • Key of the parent issue : {{ issue.fields.parent.key }}
    • Id of the parent issue : {{ issue.fields.parent.id }}


Panel
borderStylesolid

Priority

  • Field name : Priority

  • Key: priority

  • Description : The Priority field is an object describing the priority of the issue.

  • Structure :

    Expand
    titleClick here to see the structure of Priority field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"priority:
            {
                "self":String, //URL of the priority of the issue
                "iconUrl":String, //URL of the priority icon
                "name":String, //Name of the priority
                "id":String //ID of the priority
            },
    		...
    	},
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"priority":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/priority/3",
    			"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/priorities/medium.svg",
    			"name":"Medium",
    			"id":"3"
    		}
    		...
    	}
    	...
    }





  • Accessing the Priority field
    • Name of the Priority of the issue : {{ issue.fields.priority.name }}

    • ID of the Priority of the issue : {{ issue.fields.priority.id }}

...

Panel
borderStylesolid

Project

  • Field name : Project

  • Key: project

  • DescriptionThe Project field is an object describing the selected project.

  • Structure :

    Expand
    titleClick here to see the structure of Progress Project field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"project":
            {
                "self":String, //URL of the project.
                "id":String, //ID of the project.
                "key":String, //Key of the project.
                "name":String, //Name of the project.
                "avatarUrls": //URL of the project avatar
                {
                    "48x48":String, 
                    "24x24":String, 
                    "16x16":String,
                    "32x32":String,
                }
            },
    		...
    	},
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"project":
    		{
    			"self":"https://jmwe-test-2.atlassian.net/rest/api/2/project/10000",
    			"id":"10000",
    			"key":"TEST",
    			"name":"Test",
    			"avatarUrls":
    			{
    				"48x48":"https://jmwe-test-2.atlassian.net/secure/projectavatar?avatarId=10324",
    				"24x24":"https://jmwe-test-2.atlassian.net/secure/projectavatar?size=small&avatarId=10324",
    				"16x16":"https://jmwe-test-2.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324",
    				"32x32":"https://jmwe-test-2.atlassian.net/secure/projectavatar?size=medium&avatarId=10324"
    			}
    		}
    		...
    	}
    	...
    }





  • Accessing the Project field
    • Name of the project the issue belongs to : {{ issue.fields.project.name }}

    • Key of the project the issue belongs to : {{ issue.fields.project.key}}

...

Panel
borderStylesolid

Remaining Estimate

  • Field name : Remaining Estimate

  • Key: timeestimate

  • DescriptionThe Remaining Estimate field is a string representation of a number representing the remaining time estimate in seconds.

  • Structure :

    Expand
    titleClick here to see the structure of Remaining Estimate field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timeestimate": Number, //Remaining estimate in seconds
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timeestimate": 144000,
    		...
    	}
    	...
    }





  • Accessing the Remaining Estimate field
    • Remaining Estimate of the issue in seconds : {{ issue.fields.timeestimate }}

    • You can access the Remaining estimate from the Time tracking 138446084 field as well.


Panel
borderStylesolid

Reporter

  • Field name : Reporter

  • Key: reporter

  • DescriptionThe Reporter field is an object that represents the user by whom this issue is reported.

  • Structure :

    Expand
    titleClick here to see the structure of Reporter field


    Section


    Column


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



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"reporter":
    		{
    			"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 the Reporter field
    • Username AccountId of the reporter of the issue : {{ issue.fields.reporter.name accountId}}

    • Email address of the reporter : {{ issue.fields.reporter.emailAddress }}

...

Panel
borderStylesolid

Subtasks

  • Field name : Sub-tasks

  • Key: subtasks

  • Description : Sub-tasks is an array of objects. Each object represents a single sub-task.

  • Structure :

    Expand
    titleClick here to see the structure of subtasks


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"subtasks": //The subtasks is an array of objects. Each subtask is an object in itself.
            [
                {
                    "id":String, //ID of the sub-task
                    "key":String, //Key of the sub-task
                    "self": String, //URL of the sub-task
                    "fields": [object] //Fields of the sub-task.
                    {
                        "summary":"child",
                        "status":
                        {
                            "self":String, //Status of the sub-task
                            "description":String, //Description of the status
                            "iconUrl":String, //URL of the status icon
                            "name":String, //Name of the status
                            "id":String, //ID of the status
                            "statusCategory":
                            {
                                "self":String, //URL of the status category
                                "id":Number, //ID of the status category
                                "key":String, //Key of the status category
                                "colorName":String, //Colour of the status category
                                "name":String //Name of the status
                            }
                        },
                        "priority":
                        {
                            "self":String, //URL of the priority of the sub-task
                            "iconUrl":String, //URL of the priority icon of the sub-task
                            "name":String, //Name of the priority of the sub-task
                            "id":String //ID of the priority of the sub-task
                        },
                        "issuetype":
                        {
                            "self":String, //URL of the sub-task's Issue type.
                            "id":String, //ID of the sub-task's Issue type.
                            "description":String, //Description of the sub-task's Issue type.
                            "iconUrl":String, //URL of the sub-task's Issue type icon
                            "name":String, //Name of the sub-task's Issue Type.
                            "subtask": "Boolean", //True when issue is a sub-task.
                            "avatarId": Number, //Number of the avatar ID of the issue.
                        }
                    }
                }
                {
                    //Second sub-task and so on.
                }
                ...
            ],
    		...
    	}
    	...
    }

    Note that only a small subset of the subtasks' fields will be present. A much easier way to access subtasks is through the use of the subtasks filter.



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"subtasks":
    		[
    			{
    				"id":"30103",
    				"key":"TEST-630",
    				"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/30103",
    				"fields":
    				{
    					"summary":"Test",
    					"status":
    					{
    						"self":"https://jmwe-test-2.atlassian.net/rest/api/2/status/10000",
    						"description":"",
    						"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/status_generic.gif",
    						"name":"To Do",
    						"id":"10000",
    						"statusCategory":
    						{
    							"self":"https://jmwe-test-2.atlassian.net/rest/api/2/statuscategory/2",
    							"id":2,
    							"key":"new",
    							"colorName":"blue-gray",
    							"name":"To Do"
    						}
    					},
    					"priority":
    					{
    						"self":"https://jmwe-test-2.atlassian.net/rest/api/2/priority/3",
    						"iconUrl":"https://jmwe-test-2.atlassian.net/images/icons/priorities/medium.svg",
    						"name":"Medium",
    						"id":"3"
    					},
    					"issuetype":
    					{
    						"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issuetype/10003",
    						"id":"10003",
    						"description":"The sub-task of the issue",
    						"iconUrl":"https://jmwe-test-2.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10316&avatarType=issuetype",
    						"name":"Sub-task",
    						"subtask":true,
    						"avatarId":10316
    					}
    				}
    			}
    			{
    				//Second sub-task and so on..
    			}
    		],
    		...
    	}
    	...
    }





  • Accessing the Issue links field: use the subtasks filter instead Subtasks field: Only a small subset of the subtasks' fields (see the structure above) will be available from the subtasks field. To access all the fields of the subtasks use the subtasks filter instead.


Panel
borderStylesolid

Summary

  • Field name : Summary

  • Key: summary

  • Description : The Summary field is a string representation of a single-line text describing the summary of the issue.

  • Structure :

    Expand
    titleClick here to see the structure of the Summary field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"summary": String, //Summary of the issue
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"summary":"Test issue",
    		...
    	}
    	...
    }





  • Accessing the Summary field
    • Summary of the issue : {{ issue.fields.summary }}

...

Panel
borderStylesolid

Time spent

  • Field name : Time Spent

  • Key: timespent

  • DescriptionThe Time spent field is a number representing the time spent on the issue in seconds.

  • Structure :

    Expand
    titleClick here to see the structure of the Time spent field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timespent": Number, //Time spent in seconds
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timespent":28800,
    		...
    	}
    	...
    }





  • Accessing the Time spent field
    • Time spent on the issue in seconds : {{ issue.fields.timespent }}

    • You can access the time spent from the Time tracking 138446084 field as well.


Panel
borderStylesolid

Time tracking

  • Field name : Time Tracking

  • Key: timetracking

  • DescriptionThe Time tracking field is an object describing the time spent working on the issue.

  • Structure :

    Expand
    titleClick here to see the structure of the Time tracking field


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timetracking":		
    		{
    			"originalEstimate": String, //Original estimate as a duration string
    			"remainingEstimate": String, //Remaining estimate as a duration string
    			"timeSpent":String, //Time spent as a duration string
    			"originalEstimateSeconds": Number, //Original estimate in seconds
    			"remainingEstimateSeconds": Number, //Remaining estimate in seconds
    			"timeSpentSeconds":Number //Time spent in seconds
    		},
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"timetracking":		
    		{
    			"originalEstimate":"1w",
    			"remainingEstimate":"1d",
    			"timeSpent":"1d",
    			"originalEstimateSeconds":144000,
    			"remainingEstimateSeconds":28800,
    			"timeSpentSeconds":28800
    		},
    		...
    	}
    	...
    }





  • Accessing the Time tracking field
    • Original Estimate of the issue as duration string : {{ issue.fields.timetracking.originalEstimate }}

    • Original Estimate of the issue in seconds : {{ issue.fields.timetracking.originalEstimateSeconds }}

    • Remaining Estimate of the issue as duration string : {{ issue.fields.timetracking.remainingEstimate }}
    • Remaining Estimate of the issue in seconds : {{ issue.fields.timetracking.remainingEstimateSeconds }}
    • Time Spent on the issue as a duration string : {{ issue.fields.timetracking.timeSpent }}
    • Time Spent on the issue in seconds : {{ issue.fields.timetracking.timeSpentSeconds }}

...

Panel
borderStylesolid

Work log

  • Field name : Log Work

  • Key: worklog

  • Description : The Work log field is an object with two fields:

    • worklog, containing an array of objects. Each object represents a single work log.

    • total, showing the total number of work logs.
  • Structure :

    Expand
    titleClick here to see the structure of Worklog


    Section


    Column


    Code Block
    titleStructure
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"worklog":
            {
                "total":Number, //Total seconds at which the work log started
                "worklogs": //Worklogs is an array of objects. Each log is an object in itself.
                [
                    {
                        "self":String, //URL of the work log of the issue
                        "author":
                        {
                            "self":String, //URL of the author
           					"nameaccountId":String, //Name of the author
            				"key":String, //Key of the author
         				   	"emailAddress":String, //Email ID of the author
          				  	"avatarUrls":
    				        {
               					"48x48":String, //URL of the author
                				"24x24":String, //URL of the author
                				"16x16":String, //URL of the author
                				"32x32":String, //URL of the author
            				},
            				"displayName":String, //Display name of the author
            				"active":Boolean, //True when the author is active
            				"timeZone":String, //Time zone of the author
     						"timeZoneaccountType": String //TimeAccount zonetype of
    the author                     },
                        "updateAuthor":
                        {
                            "self":String, //URL of the update author
           					"nameaccountId":String, //Name of the update author
            				"key":String, //Key of the
    update author      				   	"emailAddress":String, //Email ID of the update author
          				  	"avatarUrls":
    				        {
               					"48x48":String, //URL of the update author
                				"24x24":String, //URL of the update author
                				"16x16":String, //URL of the update author
                				"32x32":String, //URL of the update author
            				},
            				"displayName":String, //Display name of the update author
            				"active":Boolean, //True when the update authoris active
            				"timeZone":String, //Time zone of the update author      
    						"accountType": String //Account type 
                        },
                        "comment":"",
                        "created":String, //Time stamp when the work log is created
                        "updated":String, //Time stamp when the work log is updated
                        "started":String, //Time stamp when the work log has started
                        "timeSpent":String, //Time spent
                        "timeSpentSeconds":Number, //Time spent in seconds
                        "id":String, //ID of the work log
                        "issueId":String //ID of the issue
                    },
                    {
    					//Second worklog and so on..
                    }
                        ...
                ]      
            }
    		...
    	}
    	...
    }



    Column
    width700px


    Code Block
    titleExample
    linenumberstrue
    "issue":
    {
    	...
    	...
    	"fields":
    	{
    		...
    		...
    		"worklog":
    		{
    			"total":1,
    			"worklogs":
    			[
    				{
    					"self":"https://jmwe-test-2.atlassian.net/rest/api/2/issue/30102/worklog/10901",
    					"author":
    					{
    						"self": "https://jmwe-test-2validationenvironment.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"
    						},
    						"updateAuthor":
    						{
    							"self": "https://jmwe-test-2validationenvironment.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"
    						},
    						"comment":"",
    						"created":"2016-10-13T08:54:51.253+0200",
    						"updated":"2016-10-13T08:54:51.253+0200",
    						"started":"2016-10-13T08:54:00.000+0200",
    						"timeSpent":"1d",
    						"timeSpentSeconds":28800,
    						"id":"10901",
    						"issueId":"30102"
    					}
    					{
    						//Second work log and so on..
    					}
    				]
    			}
    			...
    		}
    		...
    	}
    	...
    }





  • Accessing the Worklog

    • Total number of work logs : {{issue.fields.worklog.total}}

...