Sample Payload
Below is a sample payload passed to worklog scripts.
{
"issue":{
"id":"10534",
"key":"MO-5",
"renderedFields":{
"statuscategorychangedate":"16/Feb/23 1:45 PM",
"fixVersions":null,
"resolution":null,
"customfield_10630":"",
"customfield_10631":"",
"customfield_10621":null,
"customfield_10622":"",
"customfield_10623":"",
"customfield_10624":"",
"customfield_10625":null,
"customfield_10626":null,
"customfield_10627":null,
"customfield_10628":null,
"customfield_10629":null,
"lastViewed":"Today 8:23 AM",
"customfield_10100":null,
"priority":null,
"labels":null,
"customfield_10620":null,
"customfield_10610":null,
"customfield_10611":null,
"customfield_10612":null,
"customfield_10613":null,
"customfield_10614":null,
"aggregatetimeoriginalestimate":null,
"timeestimate":"0 minutes",
"versions":null,
"customfield_10616":null,
"customfield_10617":null,
"customfield_10618":null,
"customfield_10619":null,
"issuelinks":null,
"assignee":null,
"status":null,
"components":null,
"customfield_10600":null,
"customfield_10601":null,
"customfield_10602":"",
"aggregatetimeestimate":"0 minutes",
"customfield_10603":null,
"customfield_10604":null,
"customfield_10605":null,
"customfield_10606":null,
"customfield_10607":null,
"customfield_10608":null,
"customfield_10609":null,
"creator":null,
"subtasks":null,
"reporter":null,
"aggregateprogress":null,
"progress":null,
"votes":null,
"issuetype":null,
"timespent":"5 hours",
"project":null,
"customfield_10670":null,
"aggregatetimespent":"5 hours",
"customfield_10672":null,
"customfield_10673":null,
"customfield_10674":null,
"customfield_10675":null,
"customfield_10667":null,
"resolutiondate":null,
"workratio":null,
"watches":null,
"created":"16/Feb/23 1:45 PM",
"customfield_10020":null,
"customfield_10021":null,
"customfield_10022":null,
"customfield_10662":null,
"customfield_10663":null,
"customfield_10300":null,
"customfield_10654":null,
"customfield_10655":null,
"customfield_10656":null,
"customfield_10657":null,
"customfield_10659":null,
"updated":"16/Feb/23 1:47 PM",
"timeoriginalestimate":null,
"description":"",
"customfield_10650":null,
"customfield_10651":null,
"timetracking":{
"remainingEstimate":"0 minutes",
"timeSpent":"5 hours",
"remainingEstimateSeconds":0,
"timeSpentSeconds":18000
},
"customfield_10653":null,
"customfield_10005":null,
"customfield_10643":null,
"customfield_10644":null,
"customfield_10006":null,
"security":null,
"customfield_10648":[
],
"customfield_10649":null,
"summary":null,
"customfield_10000":null,
"customfield_10001":null,
"customfield_10640":null,
"customfield_10002":null,
"customfield_10003":null,
"customfield_10641":null,
"customfield_10004":null,
"customfield_10642":null,
"customfield_10400":null,
"customfield_10632":null,
"customfield_10633":null,
"environment":"",
"customfield_10634":null,
"customfield_10635":null,
"customfield_10636":null,
"duedate":null,
"customfield_10638":null,
"customfield_10639":null
},
"fields":{
"statuscategorychangedate":"2023-02-16T12:45:42.642+0200",
"parent":{
"id":"10532",
"key":"MO-3",
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issue/10532",
"fields":{
"summary":"test epic",
"status":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/status/10101",
"description":"",
"iconUrl":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/",
"name":"Backlog",
"id":"10101",
"statusCategory":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/statuscategory/2",
"id":2,
"key":"new",
"colorName":"blue-gray",
"name":"To Do"
}
},
"priority":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/priority/4",
"iconUrl":"https://cloud1.atlassian.net/images/icons/priorities/low.svg",
"name":"Low",
"id":"4"
},
"issuetype":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issuetype/10000",
"id":"10000",
"description":"A big user story that needs to be broken down. Created by JIRA Software - do not edit or delete.",
"iconUrl":"https://cloud1.atlassian.net/images/icons/issuetypes/epic.svg",
"name":"Epic",
"subtask":false,
"hierarchyLevel":1
}
}
},
"fixVersions":[
{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/version/10240",
"id":"10240",
"description":"",
"name":"1.0.0",
"archived":false,
"released":false
}
],
"resolution":null,
"customfield_10630":null,
"customfield_10631":null,
"customfield_10621":null,
"customfield_10622":null,
"customfield_10623":null,
"customfield_10624":null,
"customfield_10625":null,
"customfield_10626":null,
"customfield_10627":null,
"customfield_10628":null,
"customfield_10629":null,
"lastViewed":"2023-06-01T08:23:58.546+0300",
"customfield_10100":{
"hasEpicLinkFieldDependency":false,
"showField":false,
"nonEditableReason":{
"reason":"PLUGIN_LICENSE_ERROR",
"message":"The Parent Link is only available to Jira Premium users."
}
},
"priority":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/priority/4",
"iconUrl":"https://cloud1.atlassian.net/images/icons/priorities/low.svg",
"name":"Low",
"id":"4"
},
"labels":[
"Label1", "Label2"
],
"customfield_10620":null,
"customfield_10610":null,
"customfield_10611":null,
"customfield_10612":null,
"customfield_10613":null,
"customfield_10614":null,
"aggregatetimeoriginalestimate":null,
"timeestimate":0,
"versions":[
],
"customfield_10616":null,
"customfield_10617":null,
"customfield_10618":null,
"customfield_10619":null,
"issuelinks":[
],
"assignee":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/user?accountId=552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountId":"552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"emailAddress":"denizoguz@example.com",
"avatarUrls":{
"48x48":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/48",
"24x24":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/24",
"16x16":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/16",
"32x32":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/32"
},
"displayName":"Deniz OÄŸuz",
"active":true,
"timeZone":"Europe/Istanbul",
"accountType":"atlassian"
},
"status":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/status/10101",
"description":"",
"iconUrl":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/",
"name":"Backlog",
"id":"10101",
"statusCategory":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/statuscategory/2",
"id":2,
"key":"new",
"colorName":"blue-gray",
"name":"To Do"
}
},
"components":[
{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/component/10161",
"id":"10161",
"name":"Another Component"
}
],
"customfield_10600":null,
"customfield_10601":null,
"customfield_10602":null,
"aggregatetimeestimate":0,
"customfield_10603":null,
"customfield_10604":null,
"customfield_10605":null,
"customfield_10606":null,
"customfield_10607":null,
"customfield_10608":null,
"customfield_10609":null,
"creator":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/user?accountId=552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountId":"552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"emailAddress":"denizoguz@example.com",
"avatarUrls":{
"48x48":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/48",
"24x24":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/24",
"16x16":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/16",
"32x32":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/32"
},
"displayName":"Deniz OÄŸuz",
"active":true,
"timeZone":"Europe/Istanbul",
"accountType":"atlassian"
},
"subtasks":[
{
"id": "10557",
"key": "MO-6",
"self": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issue/10557",
"fields": {
"summary": "Subtask",
"status": {
"self": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/status/10101",
"description": "",
"iconUrl": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/",
"name": "Backlog",
"id": "10101",
"statusCategory": {
"self": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/statuscategory/2",
"id": 2,
"key": "new",
"colorName": "blue-gray",
"name": "To Do"
}
},
"priority": {
"self": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/priority/3",
"iconUrl": "https://cloud1.atlassian.net/images/icons/priorities/medium.svg",
"name": "Medium",
"id": "3"
},
"issuetype": {
"self": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issuetype/10003",
"id": "10003",
"description": "The sub-task of the issue",
"iconUrl": "https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/2/universal_avatar/view/type/issuetype/avatar/10316?size=medium",
"name": "Sub-task",
"subtask": true,
"avatarId": 10316,
"hierarchyLevel": -1
}
}
}
],
"reporter":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/user?accountId=552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountId":"552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"emailAddress":"denizoguz@example.com",
"avatarUrls":{
"48x48":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/48",
"24x24":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/24",
"16x16":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/16",
"32x32":"https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/32"
},
"displayName":"Deniz OÄŸuz",
"active":true,
"timeZone":"Europe/Istanbul",
"accountType":"atlassian"
},
"aggregateprogress":{
"progress":18000,
"total":18000,
"percent":100
},
"progress":{
"progress":18000,
"total":18000,
"percent":100
},
"votes":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issue/MO-5/votes",
"votes":0,
"hasVoted":false
},
"issuetype":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issuetype/10002",
"id":"10002",
"description":"A task that needs to be done.",
"iconUrl":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium",
"name":"Task",
"subtask":false,
"avatarId":10318,
"hierarchyLevel":0
},
"timespent":18000,
"project":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/project/10103",
"id":"10103",
"key":"MO",
"name":"Moon Operations",
"projectTypeKey":"software",
"simplified":false,
"avatarUrls":{
"48x48":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/universal_avatar/view/type/project/avatar/10660",
"24x24":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/universal_avatar/view/type/project/avatar/10660?size=small",
"16x16":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/universal_avatar/view/type/project/avatar/10660?size=xsmall",
"32x32":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/universal_avatar/view/type/project/avatar/10660?size=medium"
},
"projectCategory":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/projectCategory/10000",
"id":"10000",
"description":"Internal projects desc",
"name":"Internal"
}
},
"customfield_10670":null,
"aggregatetimespent":18000,
"customfield_10672":null,
"customfield_10673":null,
"customfield_10674":null,
"customfield_10675":null,
"customfield_10667":null,
"resolutiondate":null,
"workratio":-1,
"watches":{
"self":"https://api.atlassian.com/ex/jira/69c1ff20-b639-436d-9445-316a2b582094/rest/api/3/issue/MO-5/watchers",
"watchCount":1,
"isWatching":true
},
"created":"2023-02-16T12:45:41.879+0200",
"customfield_10020":"0|i001jz:",
"customfield_10021":null,
"customfield_10022":"MO-3",
"customfield_10662":null,
"customfield_10663":null,
"customfield_10300":null,
"customfield_10654":null,
"customfield_10655":null,
"customfield_10656":null,
"customfield_10657":null,
"customfield_10659":null,
"updated":"2023-02-16T12:47:27.185+0200",
"timeoriginalestimate":null,
"description":null,
"customfield_10650":null,
"customfield_10651":null,
"timetracking":{
"remainingEstimate":"0m",
"timeSpent":"5h",
"remainingEstimateSeconds":0,
"timeSpentSeconds":18000
},
"customfield_10653":null,
"customfield_10005":null,
"customfield_10643":null,
"customfield_10644":null,
"customfield_10006":null,
"security":null,
"customfield_10648":[
],
"customfield_10649":null,
"summary":"Issue 2 in Epic",
"customfield_10000":null,
"customfield_10001":null,
"customfield_10640":null,
"customfield_10002":null,
"customfield_10003":[
],
"customfield_10641":null,
"customfield_10004":null,
"customfield_10642":null,
"customfield_10400":null,
"customfield_10632":null,
"customfield_10633":null,
"environment":null,
"customfield_10634":null,
"customfield_10635":null,
"customfield_10636":"0.0",
"duedate":null,
"customfield_10638":null,
"customfield_10639":null
}
},
"worklog": {
"issueId": "10000",
"id": "",
"adjustEstimate": "auto",
"timeSpent": "2w",
"timeSpentSeconds": 288000,
"started": "2023-06-01T08:25:07.000+0300",
"created": "",
"updated": "",
"author": {
"self": "https://api.atlassian.com/ex/jira/cf83733-a341-3333-3333-316a2b573613/rest/api/3/user?accountId=552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountId": "552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountType": "atlassian",
"emailAddress": "denizoguz@example.com",
"avatarUrls": {
"48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/48",
"24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/24",
"16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/16",
"32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/32"
},
"displayName": "Deniz OÄŸuz",
"active": true,
"timeZone": "Europe/Istanbul",
"locale": "en_US",
"groups": {
"size": 5,
"items": [
{
"name": "administrators",
"groupId": "3333-3e1c-41fb-b64b-111111"
},
{
"name": "balsamiq-mockups-editors",
"groupId": "432-a8c9-33-b6cc-4343"
},
{
"name": "confluence-users",
"groupId": "343432-33-42c9-a61d-154543"
},
{
"name": "jira-administrators",
"groupId": "32454-44-49ef-ae91-321312345"
},
{
"name": "site-admins",
"groupId": "333-0681-666-a5fe-442321"
}
]
},
"applicationRoles": {
"size": 3,
"items": [
{
"key": "jira-servicedesk",
"name": "Jira Service Desk"
},
{
"key": "jira-software",
"name": "Jira Software"
},
{
"key": "jira-core",
"name": "Jira Core"
}
]
},
"expand": "groups,applicationRoles",
"preferences": {
"showWeekends": true,
"highlightWeekends": true,
"showTimeScale": true,
"dayStart": "08:00",
"dayEnd": "18:00",
"calendarDayCellHeight": "27px",
"yourWorkPreferredView": "CALENDAR",
"printPageSize": "A2",
"showTimesheetToolbar": true,
"frozenColumns": true
}
},
"updateAuthor": {
"self": "https://api.atlassian.com/ex/jira/cf83733-a341-3333-3333-316a2b573613/rest/api/3/user?accountId=552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountId": "552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a",
"accountType": "atlassian",
"emailAddress": "denizoguz@example.com",
"avatarUrls": {
"48x48": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/48",
"24x24": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/24",
"16x16": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/16",
"32x32": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/552159:53fff3f3-e5dc-1d25-3a12-8123c534b12a/134343432-a28d-3333-3333-3343ab4c/32"
},
"displayName": "Deniz OÄŸuz",
"active": true,
"timeZone": "Europe/Istanbul",
"locale": "en_US",
"groups": {
"size": 5,
"items": [
{
"name": "administrators",
"groupId": "3333-3e1c-41fb-b64b-111111"
},
{
"name": "balsamiq-mockups-editors",
"groupId": "432-a8c9-33-b6cc-4343"
},
{
"name": "confluence-users",
"groupId": "343432-33-42c9-a61d-154543"
},
{
"name": "jira-administrators",
"groupId": "32454-44-49ef-ae91-321312345"
},
{
"name": "site-admins",
"groupId": "333-0681-666-a5fe-442321"
}
]
},
"applicationRoles": {
"size": 3,
"items": [
{
"key": "jira-servicedesk",
"name": "Jira Service Desk"
},
{
"key": "jira-software",
"name": "Jira Software"
},
{
"key": "jira-core",
"name": "Jira Core"
}
]
},
"expand": "groups,applicationRoles",
"preferences": {
"showWeekends": true,
"highlightWeekends": true,
"showTimeScale": true,
"dayStart": "08:00",
"dayEnd": "18:00",
"calendarDayCellHeight": "27px",
"yourWorkPreferredView": "CALENDAR",
"printPageSize": "A2",
"showTimesheetToolbar": true,
"frozenColumns": true
}
},
"attributes": {
"Work Type": {
"value": "Codding"
},
"Invoice Number": {
"value": 10
},
"Billable": {
"value": true
},
"Billabel Duration": {
"value": 7200
}
}
}
}