for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JiraRestApi\Issue;
use JiraRestApi\AgileApiTrait;
use JiraRestApi\Configuration\ConfigurationInterface;
use Psr\Log\LoggerInterface;
class AgileIssueService extends \JiraRestApi\JiraClient
{
use AgileApiTrait;
private $uri = '/issue';
public function __construct(ConfigurationInterface $configuration = null, LoggerInterface $logger = null, $path = './')
parent::__construct($configuration, $logger, $path);
$this->setupAPIUri();
}
public function get($issueIdOrKey, $paramArray = []): ?AgileIssue
$response = $this->exec($this->uri.'/'.$issueIdOrKey.$this->toHttpQueryParameter($paramArray), null);
try {
return $this->json_mapper->map(
json_decode($response, false, 512, JSON_THROW_ON_ERROR),
new AgileIssue()
);
} catch (\JsonException $exception) {
$this->log->error("Response cannot be decoded from json\nException: {$exception->getMessage()}");
return null;