Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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":[
            
         ],
         "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":[
            
         ],
         "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": 9,
                "items": []
            },
            "applicationRoles": {
                "size": 3,
                "items": []
            },
            "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": 9,
                "items": []
            },
            "applicationRoles": {
                "size": 3,
                "items": []
            },
            "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
            }
        }
    },
    "worklogAttributeValues": {
        "8300ec13-3125-42e3-97c6-323fdc019479": "43f14efc-d242-4a74-8c46-9a5bfdd17797",
        "d6cbac36-f50a-4a42-877e-11417b7dc6d4": "INV5555",
        "cdffb06e-7390-4585-b1f1-ea75d297b6f4": "10"
    },
    "worklogAttributeMap": {
        "8300ec13-3125-42e3-97c6-323fdc019479": {
            "order": 0,
            "category": "SINGLE_SELECT",
            "id": "8300ec13-3125-42e3-97c6-323fdc019479",
            "name": "Work Type",
            "description": "Description of Worktype",
            "required": true,
            "active": true,
            "options": {
                "30dd4237-5c75-4160-833b-1e5baca39755": {
                    "name": "Codding",
                    "isActive": true,
                    "order": 1,
                    "id": "30dd4237-5c75-4160-833b-1e5baca39755",
                    "description": "Writing code and tests"
                },
                "43f14efc-d242-4a74-8c46-9a5bfdd17797": {
                    "name": "Testing",
                    "description": "Performing manual tests or setting them up.",
                    "isDefault": true,
                    "isActive": true,
                    "id": "43f14efc-d242-4a74-8c46-9a5bfdd17797",
                    "order": 0
                },
                "8fcfa9bf-6c37-4460-9e1b-2186a2b927e8": {
                    "name": "Requirement Analysis",
                    "isActive": true,
                    "order": 1,
                    "id": "8fcfa9bf-6c37-4460-9e1b-2186a2b927e8"
                },
                "b9d80e1c-80f5-4106-9942-17b5b059fec7": {
                    "name": "Inactive Attribute Value",
                    "description": "This attribute value is no longer used",
                    "isActive": false,
                    "order": 3,
                    "id": "b9d80e1c-80f5-4106-9942-17b5b059fec7"
                }
            }
        },
        "d6cbac36-f50a-4a42-877e-11417b7dc6d4": {
            "order": 1,
            "category": "TEXT",
            "id": "d6cbac36-f50a-4a42-877e-11417b7dc6d4",
            "name": "Invoice Number",
            "description": "invoice number",
            "required": true,
            "active": true,
            "defaultValue": "INV5555"
        },
        "09441e4a-2349-4f97-b7e3-cf85654ceab2": {
            "order": 2,
            "category": "BOOLEAN",
            "id": "09441e4a-2349-4f97-b7e3-cf85654ceab2",
            "name": "Billable",
            "description": "",
            "active": false,
            "defaultValue": true,
            "required": false
        },
        "6195b988-9462-4c4b-8447-3d5a416bea0f": {
            "order": 3,
            "category": "DURATION",
            "id": "6195b988-9462-4c4b-8447-3d5a416bea0f",
            "name": "Billable Duration",
            "description": "Some parts of effort may not be billable to the customer. ",
            "required": true,
            "active": false,
            "defaultValue": ""
        },
        "cdffb06e-7390-4585-b1f1-ea75d297b6f4": {
            "order": 4,
            "category": "INTEGER",
            "id": "cdffb06e-7390-4585-b1f1-ea75d297b6f4",
            "name": "Difficulty",
            "description": "This attribute is no longer used.",
            "required": false,
            "active": true,
            "defaultValue": "10"
        }
    }
}
  • No labels