- Require package via composer
- Place the required values in the
.env
file. - Place the tile component in your dashboard.
- Schedule the command in the
app/console/kernel.php
You can install the package via composer:
composer require creacoon/laravel-dashboard-jira-queue-tile
Place this in the .env
file.
JIRA_HOST=
JIRA_AUTHENTICATION="basic_token"
JIRA_USER=
JIRA_API_TOKEN=
JSM_VISIBLE_QUEUES=1,2,3
In the dashboard
config file, you must add this configuration in the tiles
key.
// in config/dashboard.php
return [
// ...
'jira_service_queues' => [
'jira_host' => env('JIRA_HOST'),
'jira_user' => env('JIRA_USER'),
'jira_api_token' => env('JIRA_API_TOKEN'),
'visible_queues' => explode(',', env('JSM_VISIBLE_QUEUES')),
'resolved_today_jql' => 'project = SV AND statusCategory IN (Done) AND updated > startOfDay() AND updated < endOfDay()',
],
In your dashboard view you use the livewire:jira-service-queue-tile
component.
<x-dashboard>
<livewire:jira-service-queue-tile position="a2" refresh-interval="30"/>
</x-dashboard>
In app\Console\Kernel.php
you should schedule the following commands.
protected function schedule(Schedule $schedule)
{
// ...
$schedule->command(FetchDataFromJiraQueueCommand::class)->everyFiveMinutes();
}
If you want to customize the view used to render this tile, run this command:
php artisan vendor:publish --tag="dashboard-jira-queue-tile-views"
composer test
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.