PHP Класс JiraRestApi\Issue\IssueService

Наследование: extends JiraRestApi\JiraClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
addAttachments ( $issueIdOrKey, $filePathArray ) Add one or more file to an issue.
addComment ( $issueIdOrKey, $comment ) : JiraRestApi\Issue\Comment Adds a new comment to an issue.
addWorklog ( mixed $issueIdOrKey, object $worklog ) : Worklog add work log to issue.
create ( $issueField ) : created create new issue.
createMultiple ( IssueField[] $issueFields, integer $batchSize = 50 ) : [] Create multiple issues using bulk insert.
editWorklog ( $issueIdOrKey, $worklog, string $worklogId ) : object edit the worklog
findTransitonId ( $issueIdOrKey, $transitionToName ) find transition id by transition's to field name(aka 'Resolved').
get ( $issueIdOrKey, array $paramArray = [], Issue $issueObject = null ) : Issue get all project list.
getAllPriorities ( ) : array Get all priorities.
getCustomFields ( $priorityId ) : string Get priority by id.
getIssueFromJSON ( $json )
getPriority ( $priorityId ) : string Get priority by id.
getTimeTracking ( type $issueIdOrKey ) : type get TimeTracking info.
getTransition ( $issueIdOrKey ) : array Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types.
getWorklog ( mixed $issueIdOrKey ) : PaginatedWorklog get getWorklog.
getWorklogById ( mixed $issueIdOrKey, integer $workLogId ) : PaginatedWorklog get getWorklog by Id.
search ( $jql, integer $startAt, integer $maxResults = 15, array $fields = [] ) : IssueSearchResult Search issues.
timeTracking ( $issueIdOrKey, $timeTracking ) : type TimeTracking issues.
transition ( $issueIdOrKey, $transition ) : nothing Perform a transition on an issue.
update ( $issueIdOrKey, $issueField ) : created update issue.

Приватные методы

Метод Описание
bulkInsert ( [] $issues ) : [] Makes API call to bulk insert issues.

Описание методов

addAttachments() публичный Метод

Add one or more file to an issue.
public addAttachments ( $issueIdOrKey, $filePathArray )

addComment() публичный Метод

Adds a new comment to an issue.
public addComment ( $issueIdOrKey, $comment ) : JiraRestApi\Issue\Comment
Результат JiraRestApi\Issue\Comment class

addWorklog() публичный Метод

add work log to issue.
public addWorklog ( mixed $issueIdOrKey, object $worklog ) : Worklog
$issueIdOrKey mixed
$worklog object
Результат Worklog Object

create() публичный Метод

create new issue.
public create ( $issueField ) : created
Результат created issue key

createMultiple() публичный Метод

Create multiple issues using bulk insert.
public createMultiple ( IssueField[] $issueFields, integer $batchSize = 50 ) : []
$issueFields IssueField[] Array of IssueField objects
$batchSize integer Maximum number of issues to send in each request
Результат []

editWorklog() публичный Метод

edit the worklog
public editWorklog ( $issueIdOrKey, $worklog, string $worklogId ) : object
$issueIdOrKey
$worklog
$worklogId string
Результат object

findTransitonId() публичный Метод

find transition id by transition's to field name(aka 'Resolved').
public findTransitonId ( $issueIdOrKey, $transitionToName )

get() публичный Метод

get all project list.
public get ( $issueIdOrKey, array $paramArray = [], Issue $issueObject = null ) : Issue
$issueIdOrKey
$paramArray array Query Parameter key-value Array.
$issueObject Issue
Результат Issue class

getAllPriorities() публичный Метод

Get all priorities.
public getAllPriorities ( ) : array
Результат array of priority class

getCustomFields() публичный Метод

Get priority by id.
public getCustomFields ( $priorityId ) : string
Результат string priority id

getIssueFromJSON() публичный Метод

public getIssueFromJSON ( $json )

getPriority() публичный Метод

Get priority by id.
public getPriority ( $priorityId ) : string
Результат string priority id

getTimeTracking() публичный Метод

get TimeTracking info.
public getTimeTracking ( type $issueIdOrKey ) : type
$issueIdOrKey type
Результат type @TimeTracking

getTransition() публичный Метод

Get a list of the transitions possible for this issue by the current user, along with fields that are required and their types.
public getTransition ( $issueIdOrKey ) : array
Результат array of Transition class

getWorklog() публичный Метод

get getWorklog.
public getWorklog ( mixed $issueIdOrKey ) : PaginatedWorklog
$issueIdOrKey mixed
Результат PaginatedWorklog object

getWorklogById() публичный Метод

get getWorklog by Id.
public getWorklogById ( mixed $issueIdOrKey, integer $workLogId ) : PaginatedWorklog
$issueIdOrKey mixed
$workLogId integer
Результат PaginatedWorklog object

timeTracking() публичный Метод

TimeTracking issues.
public timeTracking ( $issueIdOrKey, $timeTracking ) : type
Результат type @TimeTracking

transition() публичный Метод

Perform a transition on an issue.
public transition ( $issueIdOrKey, $transition ) : nothing
Результат nothing - if transition was successful return http 204(no contents)

update() публичный Метод

update issue.
public update ( $issueIdOrKey, $issueField ) : created
$issueIdOrKey Issue Key
$issueField object of Issue class
Результат created issue key