Git Product home page Git Product logo

jiraapibundle's People

Contributors

keesschepers avatar lijupm avatar pepe64 avatar tristanperchec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jiraapibundle's Issues

Call to undefined method JiraApiBundle\Service\IssueService::searchBranch()

get('jira_api.issue'); $issueService->searchBranch($project, $repository, $branch); var_dump($issueService); // Get the JiraApiBundle\Service\ProjectService $projectService = $this->get('jira_api.project'); $projectService->getAll($project, $repository, $params); var_dump($projectService); // Get the JiraApiBundle\Service\SearchService $searchService = $this->get('jira_api.search'); $searchService->getAll($project, $repository, $params); var_dump($searchService); ``` Produces the following error: FatalErrorException: Error: Call to undefined method JiraApiBundle\Service\IssueService::searchBranch() in /path/to/src/Acme/DemoBundle/Controller/DemoController.php line 40 Line 40: $issueService->searchBranch($project, $repository, $branch);

Errors setting up with Symfony 2.3.6

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:

app/config/config.yml

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:

app/config/config.yml

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.

Example of use?

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!

Search->getAll doesn't exist

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();
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.