alpixel / jirabundle
Connect your application to your Jira API
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.0
- symfony/symfony: >=2.8
This package is not auto-updated.
Last update: 2024-11-09 19:56:29 UTC
README
🍜 Query your Jira installation
Installation & Configuration
Active the bundle by add these line in your AppKernel.php
public function registerBundles()
{
$bundles = [
new Alpixel\Bundle\JiraBundle\AlpixelJiraBundle(),
];
}
Then in your config.yml
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.
How to use
You need to use the service alpixel_jira.api
Example :
# 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();
}