Download the PHP package lesstif/php-jira-rest-client without Composer

On this page you can find all versions of the php package lesstif/php-jira-rest-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-jira-rest-client

PHP JIRA Rest Client

Latest Stable Version Latest Unstable Version Build Status StyleCI Scrutinizer Code Quality Coverage Status License Total Downloads Monthly Downloads Daily Downloads

On-Premise only

If you want to interact with Jira cloud instead of On-Premise(Server, Data Center), check out this repository.

From version >= 5.0.0 of this repository this project is only using V2 of the Jira rest API, to use V3 check out this repository.

Requirements

Installation

  1. Download and Install PHP Composer.

  2. Next, run the Composer command to install the latest version of php jira rest client.

    or add the following to your composer.json file.

  3. Then run Composer's install or update commands to complete installation.

  4. After installing, you need to require Composer's autoloader:

Laravel: Once installed, if you are not using automatic package discovery, then you need to register the JiraRestApi\JiraRestApiServiceProvider service provider in your config/app.php.

Configuration

you can choose loads environment variables either 'dotenv' or 'array'.

use dotenv

If you want to use Dotenv based configuration,first of all, you have to install dependency.

then copy .env.example file to .env on your project root.

Important Note: As of March 15, 2018, in accordance to the Atlassian REST API Policy, Basic auth with password to be deprecated. Instead of password, you should using API token.

Laravel Users: If you are developing with laravel framework(5.x), you must append above configuration to your application .env file.

use array

create Service class with ArrayConfiguration parameter.

Usage

Table of Contents

Project

Custom Field

Issue

Comment

IssueLink

User

Group

Priority

Attachment

Version

Component

Board

Epic

Create Project

Create a new project.

See Jira API reference

Update Project

Update a project. Only non null values sent in JSON will be updated in the project.

Values available for the assigneeType field are: 'PROJECT_LEAD' and 'UNASSIGNED'.

See Jira API reference

Delete Project

Deletes a project.

See Jira API reference

Get Project Info

See Jira API reference

Get All Project list

See Jira API reference

Get Project Components

See Jira API reference (Get project components)

Get Project type

See Jira API reference (get all types)

See Jira API reference (get type)

Get Project Version

get all project's versions.

See Jira API reference

or get pagenated project's versions.

See Jira API reference

Get All Field List

See Jira API reference

Create Custom Field

See Jira API reference

If you need a list of custom field types(ex. com.atlassian.jira.plugin.system.customfieldtypes:grouppicker) , check out Get All Field list.

Get Issue Info

See Jira API reference

Returns a full representation of the issue for the given issue key.

You can access the custom field associated with issue through $issue->fields->customFields array or through direct custom field id variables(Ex: $issue->fields->customfield_10300).

Create Issue

See Jira API reference

If you want to set custom field, you can call the addCustomField function with custom field id and value as parameters.

Currently, not tested for all custom field types.

Create Multiple Issues

See Jira API reference

Create Sub Task

See Jira API reference

Creating a sub-task is similar to creating a regular issue, with two important method calls:

for example ​

If you want to set custom field, you can call the addCustomField function with custom field id and value as parameters.

Currently, not tested for all custom field types.

Add Attachment

See Jira API reference

Update issue

See Jira API reference

If you want to change the custom field type when updating an issue, you can call the addCustomField function just as you did for creating issue.

Update labels

This function is a convenient wrapper for add or remove label in the issue.

Update fix versions

This function is a convenient wrapper for add or remove fix version in the issue.

Change Assignee

See Jira API reference

Remove Issue

See Jira API reference

Read property

See Jira API reference

Write property

See Jira API reference

Add comment

See Jira API reference

Get comment

See Jira API reference

get comment by comment id

Delete comment

See Jira API reference

Update comment

See Jira API reference

Perform a transition on an issue

Note: this library uses goal status names instead of transition names. So, if you want to change issue status to 'Some Status', you should pass that status name to setTransitionName

i.e. $transition->setTransitionName('Some Status')

See Jira API reference

Note: If you are JIRA with local language profiles, you must use setUntranslatedName instead of setTransitionName.

i.e. $transition->setUntranslatedName('Done')

Perform an advanced search

Simple Query

See Jira API reference

Simple Query with LinkedIssue

See Jira API reference

JQL with pagination

See Jira API reference

JQL query class

See Jira API reference

If you're not familiar JQL then you can use convenience JqlQuery class. JqlFunction class can be used to add jql functions calls to query. You can find the names of almost all fields, functions, keywords and operators defined as constants in JqlQuery and static methods in JqlFunciton classes. For more info see the Jira docs (link above).

Remote Issue Link

get remote issue link
create remote issue link

Issue time tracking

This methods use get issue and edit issue methods internally.

See Jira API reference (get issue)

See Jira API reference (edit issue)

Add worklog in issue

See Jira API V2 reference

edit worklog in issue

See Jira API reference

Get issue worklog

See Jira API reference (get full issue worklog)

See Jira API reference (get worklog by id)

Add watcher to Issue

See Jira API reference

Remove watcher from Issue

See Jira API reference

issue notify

See Jira API reference

Create Issue Link

See Jira API reference

The Link Issue Resource provides functionality to manage issue links.

Get Issue LinkType

See Jira API reference

Rest resource to retrieve a list of issue link types.

Create User

See Jira API reference

Create user. By default created user will not be notified with email. If password field is not set then password will be randomly generated.

Get User Info

See Jira API reference

Returns a user.

Find Users

See Jira API reference

Returns a list of users that match the search string and/or property.

Find Assignable Users

See Jira API reference

Returns a list of users that match the search string.

Find users by query

See Jira API reference

Returns a list of users that match the search string.

delete User

See Jira API reference

Removes user.

update User

See Jira API reference

Updates user.

Create Group

See Jira API reference

Create new group.

Get Users from group

See Jira API reference

returns a paginated list of users who are members of the specified group and its subgroups.

Add User to group

See Jira API reference

add user to given group.

Remove User from group

See Jira API reference

Removes given user from a group.

Get All Priority list

See Jira API reference

Get Priority

See Jira API reference

Get Attachment Info

See Jira API reference

Gets the attachment information and saves the attachment into the outDir directory.

Remove attachment

See Jira API reference

Create version

See Jira API reference

Update version

See Jira API reference

Delete version

See Jira API reference

Get version related issues

See Jira API reference

Get version unresolved issues

See Jira API reference

Create component

See Jira API reference

Update component

See Jira API reference

Delete component

See Jira API reference

Get board list

See Jira API reference

Get board info

See Jira API reference

Get board issues

See Jira API reference

Get board epics

See Jira API reference

Get epic info

See Jira API reference

Get epic issues

See Jira API reference

License

Apache V2 License

JIRA Rest API Documents


All versions of php-jira-rest-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
ext-curl Version *
ext-json Version *
netresearch/jsonmapper Version ^4.2
monolog/monolog Version ^2.0|^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lesstif/php-jira-rest-client contains the following files

Loading the files please wait ....