Skip to content

Remove wrapper struct around transitions in getTransitions #136

@jpastoor

Description

@jpastoor

Currently the getTransitions() call returns a struct like:

{
    "expand": "transitions",
    "transitions": [
        {
            "id": "2",
            "name": "Close Issue",

... etc

So what every implementor needs to do is

$transitions_struct = $client->getTransitions();
$transitions = $transitions_struct["transitions"];

See also the code in Api::closeIssue() method.

As far as I can tell by the docs and what ive seen there is no extra information in the expand. Suggestion is to return the ["transitions"] sub array in getTransitions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions