2017 © Pedro Peláez
 

library laravel-jira-webhook

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

image

rjvandoesburg/laravel-jira-webhook

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  • Wednesday, April 11, 2018
  • by rjvandoesburg
  • Repository
  • 1 Watchers
  • 2 Stars
  • 580 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 7 % Grown

The README.md

Add a Jira webhook endpoint to your Laravel 5 application

Build Status, (*1)

This package adds a route to your laravel application to handle the webhook events sent by Jira, (*2)

Install

You can install the package via composer:, (*3)

``` bash composer require rjvandoesburg/laravel-jira-webhook, (*4)


You must install this service provider: ```php // config/app.php 'providers' => [ ... Atlassian\JiraWebhook\JiraWebhookServiceProvider::class, ... ];

If you're planning on linking your own events you must publish the config file with this command:, (*5)

php artisan vendor:publish --provider="Atlassian\JiraWebhook\JiraWebhookServiceProvider"

A file named jira-webhook.php will be created in the config directory under the folder atlassian. The options you can set are as followed key is the dispatched event by Jira and the value is the event class to fire. By default all events have a data property that holds the data sent by Jira., (*6)

return [

    'events' => [
        'jira:issue_created' => \Atlassian\JiraWebhook\Events\Issue\Created::class,
        'jira:issue_updated' => \Atlassian\JiraWebhook\Events\Issue\Updated::class,
        'jira:issue_deleted' => \Atlassian\JiraWebhook\Events\Issue\Deleted::class,

        /**
         * Will be deprecated in the future and be replaced by worklog_updated
         * Still catching the events because it is still being sent out
         *
         * @see https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-worklog-data-in-issue-related-events-for-webhooks/
         */
        'jira:worklog_updated' => \Atlassian\JiraWebhook\Events\Issue\WorklogUpdated::class,

        'worklog_created' => \Atlassian\JiraWebhook\Events\Worklog\Created::class,
        'worklog_updated' => \Atlassian\JiraWebhook\Events\Worklog\Updated::class,
        'worklog_deleted' => \Atlassian\JiraWebhook\Events\Worklog\Deleted::class
    ]
];

Usage

To handle the events you need to either register listeners to you EventServiceProvider or listen to the events manually. Please see https://laravel.com/docs/events#defining-listeners for more information., (*7)

Credits

License

The MIT License (MIT). Please see License File for more information., (*8)

To do

  • Make url configurable
  • Catch All events Available events
  • Implement broadcasting events

The Versions

11/04 2018

dev-master

9999999-dev

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira

11/04 2018

1.0.3

1.0.3.0

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira

08/03 2018

1.0.2

1.0.2.0

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira

20/02 2018

1.0.1

1.0.1.0

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira

13/09 2017

1.0.0

1.0.0.0

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira

23/03 2017

0.0.2

0.0.2.0

An endpoint for your Laravel application to listen to Atlassian's Jira webhook events

  Sources   Download

MIT

The Requires

 

The Development Requires

by Robert-John van Doesburg

laravel atlassian jira laravel-5-package atlassian-jira