Download the PHP package larruda/dorg-to-jira without Composer
On this page you can find all versions of the php package larruda/dorg-to-jira. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download larruda/dorg-to-jira
More information about larruda/dorg-to-jira
Files in larruda/dorg-to-jira
Package dorg-to-jira
Short Description A simple PHP script to import issues from Drupal.org into a Jira project.
License MIT
Informations about the package dorg-to-jira
dorg-to-jira
A simple tool/script to import issues from Drupal.org into a JIRA instance.
Features
- Imports title by default in the format '#1234567 This is the issue title'
- Supports JIRA custom fields and a few available tokens for value replacement
- Adds the project's name (module/theme) as a Label to the issue in JIRA
- Adds an external link to the issue in JIRA referring to the issue at Drupal.org.
Installation
Download the PHAR somewhere in your filesystem and make it executable. If you want it globally available move it to a directory listed in your system's $PATH environment variable. You can optionally rename the file and remove the .phar extension, so it's more like a "real bin".
Below is an example using OSX or Linux:
Usage
Simply run dorg-to-jira passing along the ID (nid) of the issue at Drupal.org.
You can optionally set the path of the configuration file with the -c
argument. By default it looks for a config.yml
in the current directory.
It will prompt you for your JIRA password on every usage. For security purposes we don't hold passwords or accept as argument/configuration.
Configuration
This tools needs a set of configuration values in order to work. Mandatory ones are jira, user and key which are the URL to the JIRA instance, the username and project key respectively. Custom fields are optional.
Available Tokens
You can use the following tokens as values for custom fields in the configuration file. They will be replaced by the value according to the issue being imported.
Token name | description |
---|---|
%ISSUE_URL% | The absolute URL to the issue at Drupal.org. |
%ISSUE_NID% | The Node ID of the issue. |
%ISSUE_TYPE% | The issue type (e.g: bug, feature request, etc |
%ISSUE_BODY% | The issue body text (can contain HTML) |
Building from source
I'm assuming you have Composer installed and globally available on your OS. If that's not the case, follow the instructions at https://getcomposer.org. With Composer properly installed and functional, clone this repository, cd into it and download all dependencies.
After that and considering no errors have been thrown, go ahead and build the PHAR archive. If you are curious about what this executes underneath or need to debug step-by-step, read the project's composer.json.
You should have a dorg-to-jira.phar inside a bin/ directory in the project root. If you want it globally available in your system follow the Installation instructions.
Release History
- 1.0.0
- Initial commit
- Initial commit.
- Added compiled binary.
- Changed into a single command only application.
- Replaced contents of the file to an example for reference.
- Extend Console’s Application class in order to provide a default command.
- Added support for placeholders. Added argument validation. Added support for remote links.
- Pointed “drupal-org-api” to my own fork.
- Publishing new PHAR package.
- Changed to new array notation.
- Changes dependencies to stable versions.
- Changed composer minimum stability from stable to prefer-stable.
- Changed composer minimum stability from stable to prefer-stable.
- Removed composer.lock.
- Trying a weird approach…
- Adding composer.lock back again.
- Adding initial Travis build descriptor file.
- Adding initial Travis build descriptor file.
- Trying to make this PHAR work…
- Added fork as a package dependency and generated PHAR package.
- Updated README instructions.
- Removed PHAR archive from version control.
- Updated Travis build script.
- Updated README instructions.
- Testing markdown formatting.
License
Distributed under the MIT license. See LICENSE
for more information.
All versions of dorg-to-jira with dependencies
symfony/console Version ~3.1
larruda/drupal-org-api Version dev-master
chobie/jira-api-restclient Version dev-master
symfony/yaml Version ~3.1
guzzlehttp/guzzle Version 5.1.*