for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Jira-CLI library.
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @copyright Alexander Obuhovich <[email protected]>
* @link https://github.com/console-helpers/jira-cli
*/
namespace ConsoleHelpers\JiraCLI\Issue;
use chobie\Jira\Api;
use chobie\Jira\Issue;
class ChangeLogIssueCloner extends IssueCloner
{
* IssueCloner constructor.
* @param Api $jira_api Jira REST client.
public function __construct(Api $jira_api)
parent::__construct($jira_api);
$this->queryFields[] = 'project';
$this->queryFields[] = 'type';
}
* Determines if link is accepted.
* @param Issue $issue Issue.
* @param Issue $linked_issue Linked issue.
* @return boolean
protected function isLinkAccepted(Issue $issue, Issue $linked_issue)
$issue_type = $linked_issue->get('issuetype');
return $issue_type['id'] === $this->getChangelogEntryIssueTypeId();