wowworks / team-analysis
BI tool for development team
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=7.1
- dmstr/yii2-adminlte-asset: ^2.1
- gentle/bitbucket-api: ^1.1
- guzzlehttp/guzzle: ^6.3
- kartik-v/yii2-widget-datepicker: @dev
- kartik-v/yii2-widget-select2: @dev
- lesstif/php-jira-rest-client: ^1.35
- yiisoft/yii2: ~2.0.6
- yiisoft/yii2-bootstrap: ~2.0.0
- yiisoft/yii2-swiftmailer: ~2.0.0 || ~2.1.0
Requires (Dev)
- codeception/base: ^2.2.3
- codeception/verify: ~0.3.1
- phpstan/phpstan: ^0.11.1
- squizlabs/php_codesniffer: ^3.4
- yiisoft/yii2-debug: ~2.0.0
- yiisoft/yii2-faker: ~2.0.0
- yiisoft/yii2-gii: ~2.0.0
This package is not auto-updated.
Last update: 2024-11-20 23:05:49 UTC
README
Analysis
Bitbucket settings
- Log into BitBucket
- Visit the Settings page for your organization
- Click the "OAuth" tab under "Access Management"
- Click the Add Consumer button. Attention! You will need to grant read access to the section: "Account".
- Configure and save.
Jira settings
Add OAuth Consumer
- Create [API Token] (https://confluence.atlassian.com/cloud/api-tokens-938839638.html)
Usage
- Run command
php init
. - Set the Key and Secret shown in the new entry in the list of OAuth consumers at
\common\config\params-local.php
.
'bitbucket' => [ 'key' => <your-OAuth-Key> 'secret' => <your-OAuth-Secret>, 'workspace' => <your-workspace>, 'repositories' => [ <you-repository-slag-1>, <you-repository-slag-2> ], ]
For example in URL https://bitbucket.org/teamsinspace/documentation-tests: teamsinspace - your-workspace
; documentation-tests - you-repository-slag
.
3.Add settings for connecting to the database at \common\config\params-local.php
'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => '', 'password' => '', 'username' => '', 'charset' => 'utf8', ], ]
4.Set your Jira params at \common\config\params-local.php
.
'jira' => [ 'host' => <your-jira-host> 'user' => <your-jira-username>, 'token' => <jira-password-OR-api-token>, 'projectKeys' => [ <project-key-1>, <project-key-2> ] ]
5.Apply migrations php yii migrate
.
6.Run command php yii cron/sync "dateFrom"
. Where "dateFrom" is the date from the beginning of which you need to download the data, the "dateFrom" must be in the format "Y-m-d".
When the command run without argument "dateFrom", data will be loaded for the last 24 hours.