PHP Class JiraRestApi\Issue\IssueService

Inheritance: extends JiraRestApi\JiraClient
Afficher le fichier Open project: lesstif/php-jira-rest-client Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
bulkInsert ( [] $issues ) : [] Makes API call to bulk insert issues.

Method Details

addAttachments() public méthode

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

addComment() public méthode

Adds a new comment to an issue.
public addComment ( $issueIdOrKey, $comment ) : JiraRestApi\Issue\Comment
Résultat JiraRestApi\Issue\Comment class

addWorklog() public méthode

add work log to issue.
public addWorklog ( mixed $issueIdOrKey, object $worklog ) : Worklog
$issueIdOrKey mixed
$worklog object
Résultat Worklog Object

create() public méthode

create new issue.
public create ( $issueField ) : created
Résultat created issue key

createMultiple() public méthode

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
Résultat []

editWorklog() public méthode

edit the worklog
public editWorklog ( $issueIdOrKey, $worklog, string $worklogId ) : object
$issueIdOrKey
$worklog
$worklogId string
Résultat object

findTransitonId() public méthode

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

get() public méthode

get all project list.
public get ( $issueIdOrKey, array $paramArray = [], Issue $issueObject = null ) : Issue
$issueIdOrKey
$paramArray array Query Parameter key-value Array.
$issueObject Issue
Résultat Issue class

getAllPriorities() public méthode

Get all priorities.
public getAllPriorities ( ) : array
Résultat array of priority class

getCustomFields() public méthode

Get priority by id.
public getCustomFields ( $priorityId ) : string
Résultat string priority id

getIssueFromJSON() public méthode

public getIssueFromJSON ( $json )

getPriority() public méthode

Get priority by id.
public getPriority ( $priorityId ) : string
Résultat string priority id

getTimeTracking() public méthode

get TimeTracking info.
public getTimeTracking ( type $issueIdOrKey ) : type
$issueIdOrKey type
Résultat type @TimeTracking

getTransition() public méthode

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
Résultat array of Transition class

getWorklog() public méthode

get getWorklog.
public getWorklog ( mixed $issueIdOrKey ) : PaginatedWorklog
$issueIdOrKey mixed
Résultat PaginatedWorklog object

getWorklogById() public méthode

get getWorklog by Id.
public getWorklogById ( mixed $issueIdOrKey, integer $workLogId ) : PaginatedWorklog
$issueIdOrKey mixed
$workLogId integer
Résultat PaginatedWorklog object

timeTracking() public méthode

TimeTracking issues.
public timeTracking ( $issueIdOrKey, $timeTracking ) : type
Résultat type @TimeTracking

transition() public méthode

Perform a transition on an issue.
public transition ( $issueIdOrKey, $transition ) : nothing
Résultat nothing - if transition was successful return http 204(no contents)

update() public méthode

update issue.
public update ( $issueIdOrKey, $issueField ) : created
$issueIdOrKey Issue Key
$issueField object of Issue class
Résultat created issue key