creacoon/laravel-dashboard-jira-service-management-queues-tile
最新稳定版本:1.0.1
Composer 安装命令:
composer require creacoon/laravel-dashboard-jira-service-management-queues-tile
包简介
JiraQueueServiceTile
README 文档
README
Installation
- Require package via composer
- Place the required values in the
.envfile. - Place the tile component in your dashboard.
- Schedule the command in the
app/console/kernel.php
Composer
You can install the package via composer:
composer require creacoon/laravel-dashboard-jira-queue-tile
Env file
Place this in the .env file.
JIRA_HOST= JIRA_AUTHENTICATION="basic_token" JIRA_USER= JIRA_API_TOKEN= JSM_VISIBLE_QUEUES=1,2,3
Config file
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()', ],
Tile component
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>
Schedule command
In app\Console\Kernel.php you should schedule the following commands.
protected function schedule(Schedule $schedule) { // ... $schedule->command(FetchDataFromJiraQueueCommand::class)->everyFiveMinutes(); }
Customizing the view
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"
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-16