dereuromark / jira-api-restclient
Jira REST API 客户端
1.1.0
2022-10-06 12:01 UTC
Requires
- php: >=7.4.0
Requires (Dev)
- fig-r/psr2r-sniffer: dev-master
- phpspec/prophecy: ^1.10
- phpstan/phpstan: ^1.0.0
- phpunit/phpunit: ^9.5
- yoast/phpunit-polyfills: ^1.0
This package is auto-updated.
Last update: 2024-09-06 17:54:02 UTC
README
你们都知道 Jira 支持REST API,对吧?它非常有用,例如,在自动化任务创建和通知发送期间。
此库将确保通过REST API与Jira工作时的难忘体验。希望你会喜欢它。
用法
- Jira REST API 文档:https://docs.atlassian.com/jira/REST/latest/
<?php use Jira\Api; use Jira\Api\Authentication\Basic; use 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 dereuromark/jira-api-restclient
要求
许可
Jira REST API 客户端在MIT许可下发布。有关详细信息,请参阅捆绑的LICENSE文件。