Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Jira Rest Api Bundle Laravel Package

bluetea/jira-rest-api-bundle

View on GitHub
Deep Wiki
Context7

JIRA Rest API for Symfony2

This Symfony2 Bundle uses the JIRA REST API PHP Library. This bundle adds configuration and initializes the endpoints with dependency injection and tagged services.

Installation

Add this bundle to your composer.json

composer.phar require "bluetea/jira-rest-api-bundle" dev-master

Enable it in the AppKernel.php

new Bluetea\JiraRestApiBundle\BlueteaJiraRestApiBundle(),

Add the configuration to your config.yml

bluetea_jira_rest_api:
    api_client: guzzle
    api:
        jira: https://atlassian.domain.com/rest/api/2/
        crowd: https://atlassian.domain.com/crowd/rest/usermanagement/latest/
    authentication:
        jira:
            type: basic # or anonymous
            username: username # mandatory is basic authentication is chosen
            password: password # mandatory is basic authentication is chosen
        crowd:
            type: basic # or anonymous
            username: username # mandatory is basic authentication is chosen
            password: password # mandatory is basic authentication is chosen

Usage

<?php

namespace Acme\DemoBundle\Controller;

class TestController extends Controller
{
    public function testAction()
    {
        $projectEndpoint = $this->get('jira_rest_api.jira.endpoint.project');
        // Get all projects
        return new JsonResponse($projectEndpoint->findAll());
    }
}

Check the JIRA REST API PHP Library for all the endpoints. The endpoints are loaded in the services.yml. If you want to add your custom endpoints you can do this in your own bundle and tag them with the jira_rest_api.jira_endpoint tag for a jira endpoint and the jira_rest_api.crowd_endpoint tag for a crowd endpoint.

Example:

parameters:
    acme_demo.endpoint.custom.class: Acme\DemoBundle\Endpoint\CustomEndpoint

services:
    acme_demo.endpoint.custom:
        class: %acme_demo.endpoint.custom.class%
        tags:
            - { name: jira_rest_api.jira_endpoint }

We would greatly appreciate if you submit a PR if you expand the endpoints in JIRA REST API PHP Library!

Documentation

JIRA 6.3.10 REST API Documentation

JIRA REST API Developers Documentation

Crowd REST Resources

Debug

Install the JIRA REST API browser to test your calls. You find it at https://atlassian.yourdomain.com/plugins/servlet/restbrowser. Your getting a 404? Install the plugin first via the plugin manager.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle