Page tree

Versions Compared

Key

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

...

Getting Time Between Value via Rest Service

GET Time   Time Between custom field details per issue.

JIRA_URL/rest/jep-api/latest/customfields/timebetween/customfield_xyz?issue=ABC-123  (GET)

where customfield_xyz is the customfield Id and ABC-123 is the issue key.

Sample output:

Code Block
languagejs
{  
   "totalDurationAsMillis":29018997792,
   "totalPausedDurationAsMillis":0,
   "totalWorkingDurationAsMillis":29018997792,
   "totalWorkingDurationAsFormattedString":"47 weeks, 6 days, 20 hours, 49 minutes, 57 seconds",
   "executions":[  
      {  
         "startTime":1540943223822,
         "endTime":1569962214542,
         "fromStatus":"10000",
         "fromStatusString":"To Do",
         "toStatus":"10001",
         "toStatusString":"Done",
         "finalized":true,
         "totalDuration":29018990720,
         "totalWorkingDuration":29018990720,
         "totalPausedDuration":0
      },
      {  
         "startTime":1569962382226,
         "endTime":1569962389298,
         "fromStatus":"10000",
         "fromStatusString":"To Do",
         "toStatus":"10001",
         "toStatusString":"Done",
         "finalized":true,
         "totalDuration":7072,
         "totalWorkingDuration":7072,
         "totalPausedDuration":0
      }
   ]
} 

...