amayamedia/jira-rest-client

A simple client to communicate with JIRA Server

0.2.2-rc1 2023-01-14 21:51 UTC

This package is auto-updated.

Last update: 2024-10-15 02:02:20 UTC


README

Latest Version on Packagist Total Downloads GitHub Actions

A high-level client for interacting with JIRA Server Rest API. Currently only supports Worklogs

Installation

You can install the package via composer:

composer require amayamedia/jira-rest-client

Usage

$authClient = new AuthService('https://example.com/api/auth');
$issueService = new IssueService();
$issueService->useAuth($authClient);

// Get Worklogs for an issue
$issue = $issueService->getWorklog('TEST-1');

// Add a Worklog to an Issue
$issueService->addWorklog('TEST-1', [
    'comment' => 'I did some work',
    'timeSpentSeconds' => 12000
]);

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email rene@amayamedia.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.