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.
composer.json
<?php
$api = new JiraRestClient\Api(
"https://your-jira-project.net",
new JiraRestClient\Api\Authentication\Basic("yourname", "password")
);
$walker = new JiraRestClient\Issues\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.
}
MIT License
Shuhei Tanuma https://github.com/chobie/jira-api-restclient http://chobie.github.io/