gorkalaucirica / jira-api-client
JIRA API client
Installs: 2 314
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 2
Open Issues: 0
Requires
- php: >=5.3.0
- kriswallsmith/buzz: 0.10
Requires (Dev)
- henrikbjorn/phpspec-code-coverage: 1.0.*@dev
- phpspec/phpspec: 2.0.*@dev
This package is not auto-updated.
Last update: 2024-11-19 03:37:21 UTC
README
PHP Library to process calls to JIRA's REST API
This package is work in progress and some functionality is not available yet.
##Installation
The recommended way to install JiraApiClient is through composer. Just create a composer.json file and run the php composer.phar install command to install it:
"require": {
"gorkalaucirica/jira-api-client": "dev-master"
}
##Usage
$auth = new BasicAuth('username','password');
$client = new Client('https://example.atlassian.net/rest/api/2', $auth);
##API calls
###Filtering issues:
$issuesAPI = new IssuesAPI($client);
$issues = $issuesAPI->searchIssues("<your jql query>");
###Getting issue by id
$issuesAPI = new IssuesAPI($client);
$issues = $issuesAPI->getIssue('XXX-42');
###Posting new issue
$newIssue = new Issue();
//Fill new issue using setters
//....
$issuesAPI = new IssuesAPI($client);
$issue = $issuesAPI->postIssue($newIssue);
##Tests
bin/phpspec run