edujugon / jira
Easy to use wrapper for Jira REST api
0.0.1
2017-11-13 14:24 UTC
Requires
- php: >=5.5
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^4.0 || ^5.0
This package is auto-updated.
Last update: 2024-12-19 10:16:16 UTC
README
Easy to use wrapper for Jira REST api
Installation
Type in console:
composer require edujugon/jira
Usage samples
$jira = new Edujugon\JIRA\JIRA($username,$password,$url);
Set the project to interact with
You can set the project either by key
or id
.
The available methods are:
$jira->setProjectByKey('PI');
or
$jira->setProjectById('162');
Set the issue type
You can set the issue type either by name
or id
.
The available methods are:
$jira->setIssueTypeByName('Task');
or
$jira->setIssueTypeById('1');
Create an issue
$jira->setProjectByKey('PI') ->setIssueTypeByName('Task') ->setSummary('Issue title') ->setDescription('First line of the description') ->addDescriptionNewLine('Another line') ->addDescriptionNewLine('One line more :)') ->createIssue();
More options soon
Enjoy :)