jeyroik/extas-jira

There is no license information available for the latest version (0.3.0) of this package.

JIRA REST API client

0.3.0 2020-10-02 07:12 UTC

This package is auto-updated.

Last update: 2024-10-29 06:12:02 UTC


README

tests codecov.io PHPStan Enabled Latest Stable Version Total Downloads Dependents

Описание

Jira REST API client for Extas

Использование

use extas\components\Item;
use extas\interfaces\jira\issues\IIssue;
use extas\interfaces\jira\IJIraRepository;

/**
 * @method IJIraRepository jiraIssues()
 */
class My extends Item
{
    public function getIssuesIds()
    {
        /**
         * @var IIssue[] $issues
         */
        $issues = $this->jiraIssues('jira_instance_1', 'secret.password')->all([IIssue::FIELD__FIELDS_ASSIGNEE => 'some@user']);
        return array_column($issues, IIssue::FIELD__ID);
    }

    protected function getSubjectForExtension() : string
    {
        return 'my';
    }
}