Skip to content

abulwcse/jira-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jira-api

JIRA supports REST API, It can be very useful, for example, during automation job creation and notification sending.

Usage

<?php
use Jira\Client;
use Jira\Authentication\BasicAuthenticationService

$api = new Client(
    'https://your-jira-project.net',
    new BasicAuthenticationService('yourname', 'password')
);

$issues = $api->get('issue')->search('project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC');

foreach ( $issues as $issue ) {
    var_dump($issue);
}

Installation

php composer.phar require abul/jira-php-client ^0.1@dev

Requirements

License

JIRA PHP Client is released under the MIT License. See the bundled LICENSE file for details.