PHP code example of amayamedia / jira-rest-client
1. Go to this page and download the library: Download amayamedia/jira-rest-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amayamedia / jira-rest-client example snippets
$authClient = new AuthService('https://example.com/api/auth');
$issueService = new IssueService();
$issueService->useAuth($authClient);
// Get Worklogs for an issue
$issue = $issueService->getWorklog('TEST-1');
// Add a Worklog to an Issue
$issueService->addWorklog('TEST-1', [
'comment' => 'I did some work',
'timeSpentSeconds' => 12000
]);