AlpixelJiraBundle (WIP Do not use in production)
🍜 Query your Jira installation, (*1)
Installation & Configuration
Active the bundle by add these line in your AppKernel.php
, (*2)
public function registerBundles()
{
$bundles = [
new Alpixel\Bundle\JiraBundle\AlpixelJiraBundle(),
];
}
Then in your config.yml
, (*3)
alpixel_jira:
base_url: 'http://my.jira.fr/rest/api/2/'
auth:
method:
basic:
username: MyUsername
password: MyPassword
Only the basic authentication is available for now., (*4)
How to use
You need to use the service alpixel_jira.api
, (*5)
Example :, (*6)
# MyAwesomeController.php
....
public function apiAction() {
$jira = $this->get('alpixel_jira.api';
$response = $jira->get('/mypermission');
$data = $response->getData();
$response = $jira->search('(status=resolved AND project=SysAdmin) OR assignee=bobsmith', [
'orderBy' => 'name',
]);
$data = $response->getData();
}