From 4456ee7e58cbb4c4e0fd3d918fcc69aa1d87f67b Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Mon, 18 May 2015 11:56:56 +0200 Subject: [PATCH 1/6] Add an example of issue creation --- examples/create_issue.php | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/create_issue.php diff --git a/examples/create_issue.php b/examples/create_issue.php new file mode 100644 index 0000000..3a5ad74 --- /dev/null +++ b/examples/create_issue.php @@ -0,0 +1,7 @@ +createIssue('', '', '', array( + 'description' => '' +)); From dac3bfbe4260dc11dbb896a05d949384dc76a4e2 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 11 Jun 2015 07:42:56 +0200 Subject: [PATCH 2/6] Curl Driver: Make sure the SAFE_UPLOAD is set to false (since PHP 5.6 the default value is TRUE) --- src/Jira/Api/Client/CurlClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Jira/Api/Client/CurlClient.php b/src/Jira/Api/Client/CurlClient.php index 4a30d41..869ee3f 100644 --- a/src/Jira/Api/Client/CurlClient.php +++ b/src/Jira/Api/Client/CurlClient.php @@ -78,6 +78,7 @@ public function sendRequest($method, $url, $data = array(), $endpoint, Authentic if ($method == "POST") { curl_setopt($curl, CURLOPT_POST, 1); if ($isFile) { + curl_setopt($curl, CURLOPT_SAFE_UPLOAD, false); curl_setopt($curl, CURLOPT_POSTFIELDS, $data); } else { curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($data)); From a467755aebaed91f1a4670b3e571e0777a0a26ca Mon Sep 17 00:00:00 2001 From: Thomas KELLER Date: Thu, 11 Jun 2015 07:50:35 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 40 +++++----------------------------------- 1 file changed, 5 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 1d3a55c..a950189 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,10 @@ -# Jira Api Rest Client +# Jira Api Rest Client (Forked) -[![Build Status](https://secure.travis-ci.org/chobie/jira-api-restclient.png)](http://travis-ci.org/chobie/jira-api-restclient) +For usage, example and licence please see the original README : https://github.com/chobie/jira-api-restclient/blob/master/README.md +## Improvements -you know JIRA5 supports REST API. this is very useful to make some custom notifications and automated jobs. -(JIRA also supports email notification, but it's too much to custom templates, notification timing. unfortunately it requires Administration permission.) -this API library will help your problems regarding JIRA. hope you enjoy it. +* Curl Driver : Enable support for file upload (PHP >= 5.6) +* New example for Issue creation -# Usage -composer.json - -``` -composer require chobie/jira-api-restclient 2.0.* -``` - - -````php -push("project = YOURPROJECT AND (status != closed and status != resolved) ORDER BY priority DESC"); -foreach ($walker as $issue) { - var_dump($issue); - // send custom notification here. -} -```` - -# License - -MIT License - -# JIRA5 Rest API Documents - -https://developer.atlassian.com/static/rest/jira/6.0.html From 9ada1b276b5202b23dac9d59e57e37504fac364f Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 11 Jun 2015 07:53:15 +0200 Subject: [PATCH 4/6] Delete useless file --- phpunit.xml.dist | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 phpunit.xml.dist diff --git a/phpunit.xml.dist b/phpunit.xml.dist deleted file mode 100644 index f5f0ffb..0000000 --- a/phpunit.xml.dist +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - tests - - - - \ No newline at end of file From 58a53201bade36db15d11d4fc38d35ee1e1d9e79 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 11 Jun 2015 07:58:55 +0200 Subject: [PATCH 5/6] Revert "Delete useless file" This reverts commit 9ada1b276b5202b23dac9d59e57e37504fac364f. --- phpunit.xml.dist | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 phpunit.xml.dist diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..f5f0ffb --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,25 @@ + + + + + + + + tests + + + + \ No newline at end of file From 643c6f287363940be32b8130c6633a835505c6c7 Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Thu, 11 Jun 2015 08:05:39 +0200 Subject: [PATCH 6/6] Update the composer.json --- composer.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 3388fd6..c1c05a4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "chobie/jira-api-restclient", - "description": "JIRA REST API.", + "name": "t-keller/jira-api-restclient", + "description": "Jira REST API Wrapper", "keywords": ["jira","rest","api"], "type": "library", "license": "MIT", @@ -9,6 +9,10 @@ "name": "Shuhei Tanuma", "homepage": "http://chobie.github.io/", "email": "chobieeee@php.net" + }, + { + "name": "Thomas Keller", + "homepage": "https://github.com/t-keller" } ], "minimum-stability": "dev",