Download the PHP package lesstif/gitlab-jira-integration without Composer
On this page you can find all versions of the php package lesstif/gitlab-jira-integration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lesstif/gitlab-jira-integration
More information about lesstif/gitlab-jira-integration
Files in lesstif/gitlab-jira-integration
Package gitlab-jira-integration
Short Description This is the advanced integrator GitLab CE(Community Edition) and Atlassian's JIRA.
License Apache 2.0
Informations about the package gitlab-jira-integration
GitLab JIRA Integration
What is it?
- JIRA DVCS Connector Plugin does not support gitlab.
- GitLab Community Edition does not support Advanced JIRA Integration(EE only feature).
Note
GitLab 8.3 now supported Advanced JIRA Integration in CE. see https://about.gitlab.com/2015/12/22/gitlab-8-3-released/
GitLab-JIRA-Integration is a small PHP standalone app executed by gitlab web hooks and interact with JIRA using JIRA-REST API. If you have questions contact to me or open an issue on GitHub.
How it works.
Requirements
- PHP >= 5.5.9
- Lumen framework >= 5.1
- php-jira-rest-client
- Atlassian JIRA 6 or above
- Gitlab CE 6 or above
Installation
-
Download and Install PHP Composer.
-
clonning gitlab-jira-intergration project
-
Run the composer install command.
- Now you need define your a Jira and Gitlab connection info into
.env
configuration.
Tip: In the following steps, you will generate your private token for API.
- login gitlab and click on Profile Settings
- Click on Account
- Here, You can find your private token.
Next, copy config.integration.example.json to config.integration.json
.
Here is the default configuration, for interact with Jira. `
transition
- message : "[~%s] issue %s with %s" : Converted to "User Issue Resolved with Commit URL"
- keywords: if commit message had second element(eg: resolve or fix),then issue status transition to first element.(eg : Resolved)
Usage
Run PHP standalone web server on the gitlab-jira integration server. (eg: my-host.com).
Configuration
gitlab web hook configuration
- Choose > Project Settings -> Web Hooks.
- Setting URL to your gitlab-jira integration's running Host. (eg: http://my-host.com:9000/gitlab/hook)
Tip: If you decide to change the hook receiving URI from the default, Open the app/Http/routes.php file in a text editor and find this line:
change to 'gitlab/hook' to desired the URI (eg: 'gitlab/my-hook-receiver')
Batch gitlab webhook registration.
-
modify 'url' field and save to hook.json
-
modify url(ttp://my-host.com:9000/) to your url and running curl command
- login gitlab and goto Choose > Project Settings -> Web Hooks. Then confirm your web hook settings.
Checking Installation
- To get started, let's running a curl command on your command line.
You can see response json data including gitlab user list and created user list file to 'storage/app/users.json'.
Usage
Referencing JIRA isssues
- git commit with JIRA Issue Key(eg. TEST-123 or test-123)
- Gitlab-Jira-Integrator will automatically add a comment in specific JIRA Issue.
Resolving or Closing JIRA isssues
- git commit with JIRA Issue Key and trigger keywords(eg. 'Closed TEST-123' or 'fix test-123')
- Gitlab-Jira-Integrator will automatically add a comment and closing(or fixing) directly in specific JIRA Issue by using trigger keywords(setting in config.integration.json) in commit message.
Issue Time Tracking
not yet implemented.
License
Apache V2 License
See Also
All versions of gitlab-jira-integration with dependencies
laravel/lumen Version 5.1.*
guzzlehttp/guzzle Version ~6.0
league/flysystem Version ^1.0