Laravel5 service for Jira REST api to search and create issues
Deprecated
This repository is deprecated and will no longer be maintained, as the Laravel and Jira APIs may have changed significantly over the last 2 years of inactivity of this package. Please feel free to clone the repository and provide your own fork! All the best!, (*1)
Easy access Jira rest api in Laravel5., (*2)
composer require univerze/laravel-jira
Afterwards, run composer update
from your command line., (*4)
Then, update config/app.php
by adding an entry for the service provider., (*5)
'providers' => [ // ... Univerze\Jira\JiraServiceProvider::class, ]; 'aliases' => [ // ... 'Jira' => Univerze\Jira\Facade\JiraFacade::class, ];
Finally, from the command line again, run php artisan vendor:publish
to publish
the default configuration file to config/jira.php., (*6)
The search method will take the jql query string:, (*8)
$response = Jira::search( 'project = YourProject AND labels = somelabel' );
You can build and test the jql beforehand if you go to your Jira site Issues > Search for Issues > Advanced Search., (*9)
Further information can be found on JIRA documentation - search issues, (*10)
NOTE jql parameter is already included in the payload, (*11)
$issue = Jira::create( array( 'project' => array( 'key' => 'YourProject' ), 'summary' => 'This is the summary', 'description' => 'Description here', 'issuetype' => array( 'name' => 'Bug' ) ) );
Further information can be found on JIRA documentation - create issue, (*13)
NOTE fields parameter is already included in the payload, (*14)
Jira::update( 'ISSUE-1234', array( 'description' => 'this is my new description' ) );
In this case the JIRA api will return "204 - No Content" instead of issue details., (*16)
Further information can be found on JIRA documentation - edit issue, (*17)
NOTE fields parameter is already included in the payload, (*18)
Released under the MIT License. See the LICENSE file for details., (*19)