RedmineのRESTful APIを利用しチケット(Issue)を操作する自分用のサンプル集。 https://www.redmine.org/projects/redmine/wiki/Rest_Issues
config.phpを開きRedmineが稼働しているURLと、APIを実行するユーザーのトークンをセット。
<?php
// Redmineが稼働しているURL
define('END_POINT', 'https://redmine.example.com');
// APIを実行するユーザーのトークン
define('TOKEN', 'Gm76hdw6smBgMrmsrvnhvSpqv7oRzQRnles8ygrm');
各サンプルファイルをCLIで直接実行する。
$ php issue_create.php
file | description |
---|---|
issue_create.php | チケットの新規作成 |
project_idの調べ方
https://redmine.example.com/projects.json?key=xxxxxxxxxxxxxxxxxxxx