PHP code example of cpliakas / jira
1. Go to this page and download the library: Download cpliakas/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/ */
cpliakas / jira example snippets
sh
$ curl -sS https://getcomposer.org/installer | php
php
$issue = $jira->issue('AB-123')->get();
php
use Jira\Remote\RemoteFieldValue;
$updates = [];
$value = new RemoteFieldValue();
$updates[] = $value->setId('assignee')->setValues(['jon.doe']);
$value = new RemoteFieldValue();
$updates[] = $value->setId('due-date')->setValues(['2015-12-31']);
$jira->issue('AB-1')->update($updates);