jpastoor / jira-api-restclient
JIRA REST API 客户端
v2.0.0
2015-12-27 18:58 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is auto-updated.
Last update: 2024-09-09 02:13:54 UTC
README
大家都知道JIRA支持REST API,对吧?它可以非常实用,例如在自动化作业创建和发送通知时。
此库将确保您通过REST API与JIRA合作时拥有难忘的体验。希望您会喜欢它。
使用方法
- JIRA Rest API 文档:https://docs.atlassian.com/jira/REST/latest/
<?php 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 require chobie/jira-api-restclient ^2.0@dev
需求
许可协议
JIRA REST API 客户端是在MIT许可下发布的。有关详细信息,请参阅附带的LICENSE文件。