PHP code example of jeyroik / extas-jira
1. Go to this page and download the library: Download jeyroik/extas-jira library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jeyroik / extas-jira example snippets
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';
}
}