lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Epic tasks include subtasks but subtask timeTracking is null #485

Closed antonkomarev closed 1 year ago

antonkomarev commented 1 year ago
$result = (new EpicService())->getEpicIssues('XXXX-YYYY');

This code fetch all issues in Epic XXXX-YYYY, these issues has subtasks, but subtasks always has timeTracking: null.

antonkomarev commented 1 year ago

I suppose it happens because Jira returns object without subtasks time tracking. Maybe there is a way to expand this data without making subquery?

antonkomarev commented 1 year ago

aggregatetimeoriginalestimate shows only initial estimation, and if remaining time of subtask was changed — value is not changed :(

antonkomarev commented 1 year ago

I think I found a solution: $issue->fields->aggregatetimeestimate->scalar