2017 © Pedro Peláez
 

library jira

A PHP client for integrating with the JIRA issue & bug tracker software.

image

cpliakas/jira

A PHP client for integrating with the JIRA issue & bug tracker software.

  • Wednesday, August 5, 2015
  • by cpliakas
  • Repository
  • 9 Watchers
  • 69 Stars
  • 24,286 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 9 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

Installation

  1. Download the composer.phar executable or use the installer., (*1)

    sh $ curl -sS https://getcomposer.org/installer | php, (*2)

  2. Create a composer.json defining your dependencies. Note that this example is a short version for applications that are not meant to be published as packages themselves. To create libraries/packages please read the guidelines., (*3)

    json { "require": { "cpliakas/jira": "~1.0" } }, (*4)

  3. Run Composer: php composer.phar install, (*5)

Authenticating against JIRA

``` php, (*6)

use Jira\JiraClient;, (*7)

require_once 'vendor/autoload.php';, (*8)

// Modify accordingly, note that in some installations the JIRA instance is // in the document root and not in the "jira" subdirectory. $host = 'http://localhost:8090/jira'; $username = 'my.username'; $password = 'my.password';, (*9)

$jira = new JiraClient($host); $jira->login($username, $password);, (*10)



## Fetching an issue ``` php $issue = $jira->issue('AB-123')->get();

Creating an issue

``` php, (*11)

use Jira\Remote\RemoteIssue;, (*12)

$issue = new RemoteIssue(); $issue ->setProject('AB') ->setType(1) // ID can be found via $jira->issueTypes()->get(). ->setSummary('Issue created via the API') ->setDescription('This is a test issue created throug the API');, (*13)

$jira->create($issue);, (*14)


## Updating an issue ``` 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);

Add user to group

``` php, (*15)

use Jira\Remote\RemoteUser; use Jira\Remote\RemoteGroup;, (*16)

$user = $jira->user("id")->get(); $group = $jira->group("id")->get();, (*17)

$jira->call("addUserToGroup", $group, $user);, (*18)

```, (*19)

The Versions

05/08 2015

dev-master

9999999-dev https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

05/08 2015

1.1.1

1.1.1.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

05/08 2015

1.1.0

1.1.0.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

05/08 2015

1.0.3

1.0.3.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

25/02 2015

1.0.2

1.0.2.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

03/12 2014

1.0.1

1.0.1.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

01/12 2014

1.0.0

1.0.0.0 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira

29/12 2012

1.0.0beta1

1.0.0.0-beta1 https://github.com/cpliakas/jira-client

A PHP client for integrating with the JIRA issue & bug tracker software.

  Sources   Download

LGPL-3.0

The Requires

  • php >=5.3.0

 

by Chris Pliakas

jira