PHP code example of chobie / jira-api-restclient
1. Go to this page and download the library: Download chobie/jira-api-restclient 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/ */
chobie / jira-api-restclient example snippets
use chobie\Jira\Api;
use chobie\Jira\Api\Authentication\Basic;
use chobie\Jira\Issues\Walker;
$api = new Api(
'https://your-jira-project.net',
new Basic('yourname', 'password')
);
$walker = new Walker($api);
$walker->push(
'project = "YOURPROJECT" AND (status != "closed" AND status != "resolved") ORDER BY priority DESC'
);
foreach ( $walker as $issue ) {
var_dump($issue);
// Send custom notification here.
}
php composer.phar