medicorenl / jiraapibundle Goto Github PK
View Code? Open in Web Editor NEWA Symfony2 bundle that integrates the Jira REST API into native Symfony2 services
A Symfony2 bundle that integrates the Jira REST API into native Symfony2 services
Please, update Guzzle to last version in composer.json
I’ve included it via composer and followed the install instructions – this errors out with symphony 2.3.6
The issue seems to be with how the ‘url’ and ‘credentials’ values are being placed into /app/config/config.yml.
With the suggested code:
jira_api.url: "http://jira.your-organisation.com/jira/rest/api/latest/"
jira_api.credentials: "username:password"
Due to indentation, it tries to add it to whatever parameters are defined above these values.
When un-indenting the values and trying to run a basic application:
FileLoaderLoadException: Cannot import resource "/path/to/app/config/config.yml" from "/ path/to /app/config/config_dev.yml". (There is no extension able to load the configuration for "jira_api.url" (in / path/to /app/config/config.yml). Looked for namespace "jira_api.url", found "framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "acme_demo", "web_profiler", "sensio_distribution")
So naturally, I tried modifying the entries in config.yml to this:
jira_api:
url: "http://jira.your-organisation.com/jira/rest/api/latest/"
credentials: "username:password"
Which resulted in the following error:
FileLoaderLoadException: Cannot import resource "/ path/to /app/config/config.yml" from "/ path/to /app/config/config_dev.yml". (There is no extension able to load the configuration for "jira_api" (in / path/to /app/config/config.yml). Looked for namespace "jira_api", found "framework", "security", "twig", "monolog", "swiftmailer", "assetic", "doctrine", "sensio_framework_extra", "acme_demo", "web_profiler", "sensio_distribution")
Currently, this renders the bundle un-usable with 2.3.6.
Hello,
I was searching for a quick and easy way to make some basic calls to JIRA API through a SF2 application.
Do you have a quick example on how your bundle should be used ?
Thanks!
We want to use this in Gush but as a library and via an adapter. Thanks
in the examples of the readme, this is given:
$searchService = $this->get('jira_api.search');
$searchService->getAll($project, $repository, $params);
getAll() doesn't exist anywhere.
I've been able to do this:
$query = array(
'jql' => 'project IN (GRS, EXP) AND resolution IS EMPTY',
'maxResults' => 500);
$searchService = $this->get('jira_api.search');
$searchService->search($query);
The issue I'm running into is trying to access the results
$searchService->result
This is a protected property and I don't see a native getter for them.
A somewhat dirty solution is to add the following function to JiraApiBundle/Service/SearchService.php:
public function getResults()
{
return $this->response->json();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.