edmondscommerce / jirashell
A simple PHP class for adding issues on Jira
dev-master
2020-03-06 14:02 UTC
Requires
- ext-curl: *
- ext-json: *
Requires (Dev)
- edmondscommerce/phpqa: dev-master
This package is auto-updated.
Last update: 2024-11-07 00:08:13 UTC
README
By Edmonds Commerce
Env
The first thing you need to setup is your env
file. This can be placed anywhere on the system:
readonly _jiraUrl=https://your.jira.url;
readonly _jiraUser=jira_user;
readonly _jiraPass=jira_pass;
readonly _jiraProject=jira_project;
Queue
You can now queue a set of tickets for JiraShell to send. You can do this using:
$jiraShell = new EdmondsCommerce\JiraShell\JiraShell( '/path/to/queue.json', '/path/to/env' ); $jiraShell->queueIssue( 'Title', 'Description', [ 'Sub-task Title', 'Sub-task Description' ] );
Preview
You can preview the tickets that you currently have queued using:
php jiraShellPreviewTickets.php '/path/to/queue.json' '/path/to/env'
Test
You can send a test ticket to Jira to ensure you have things setup correctly using:
php jiraShellTest.php '/path/to/queue.json' '/path/to/env'
Send
And finally you can send your tickets to Jira using:
php jiraShellSendTickets.php '/path/to/queue.json' '/path/to/env'