Skip to content

Commit

Permalink
Issue-27: Log WorkLog Staring Date
Browse files Browse the repository at this point in the history
Send started datetime attribute on creating Jira worklogs to correctly
register worklogs in past dates when synced in future dates.
  • Loading branch information
mohamed-abdul-fattah committed Jun 6, 2022
1 parent b012d87 commit d546f37
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea/
/.vscode/
/vendor/
/**/database.db
/**/test.db
Expand Down
2 changes: 1 addition & 1 deletion jiralogger
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ require __DIR__ . '/vendor/autoload.php';
*
* @see https://semver.org/
*/
define('APP_VERSION', '0.5.1');
define('APP_VERSION', '0.5.2');

/**
* Application name to be displayed on listing commands
Expand Down
2 changes: 2 additions & 0 deletions src/Services/Connect/JiraConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace App\Services\Connect;

use DateTime;
use Exception;
use PDOException;
use App\Entities\Task;
Expand Down Expand Up @@ -248,6 +249,7 @@ protected function getPayload(Task $task): array
return [
'comment' => $task->getDescription(),
'timeSpentSeconds' => $task->logInSeconds(),
'started' => (new DateTime($task->getStartedAt()))->format('Y-m-d\TH:i:s\.000+0000'),
];
}

Expand Down

0 comments on commit d546f37

Please sign in to comment.