Create a client providing your jira api url
, username
and password
:
$client = new IssueClient('https://myproject.atlassian.com/rest/api/latest', 'login', 'password');
Now you're able to run api requests with that client:
$issue = json_decode($client->get($issueId))->getBody()->getContents());
And don't forget about error handling (check guzzle documentation about more information):
try {
$response = $client->getIssue($issueId);
} catch (RequestException $e) {
...
}
- Issue
- Workflow
- Project
- Cover more api endpoints