Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edujugon/jira
Easy to use wrapper for Jira REST api
https://github.com/edujugon/jira
Last synced: 1 day ago
JSON representation
Easy to use wrapper for Jira REST api
- Host: GitHub
- URL: https://github.com/edujugon/jira
- Owner: Edujugon
- License: mit
- Created: 2017-11-12T19:14:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T18:56:35.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T10:44:29.898Z (about 1 month ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# JIRA
Easy to use wrapper for Jira REST api
## Installation
##### Type in console:
```
composer require edujugon/jira
```## Usage samples
```php
$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:```php
$jira->setProjectByKey('PI');
```
or
```php
$jira->setProjectById('162');
```#### Set the issue type
You can set the issue type either by `name` or `id`.
The available methods are:```php
$jira->setIssueTypeByName('Task');
```
or
```php
$jira->setIssueTypeById('1');
```### Create an issue
```php
$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 :)