Skip to content

In the IssueTransition interface the to field is incorrect #120

Closed
@jamie-wearsafe

Description

@jamie-wearsafe

When querying from Jira and looking at the IssueTransition object returned, the to value is a StatusDetails object, not an array of StatusDetails[] objects.

Selected transition:{
        "id": "151",
        "name": "Blocked",
        "to": {
            "self": "https://xxxx.atlassian.net/rest/api/2/status/10200",
            "description": "",
            "iconUrl": "https://xxxx.atlassian.net/images/icons/statuses/generic.png",
            "name": "Blocked",
            "id": "10200",
            "statusCategory": {
                "self": "https://xxxx.atlassian.net/rest/api/2/statuscategory/2",
                "id": 2,
                "key": "new",
                "colorName": "blue-gray",
                "name": "To Do"
            }
        },
        "hasScreen": false,
        "isGlobal": true,
        "isInitial": false,
        "isAvailable": true,
        "isConditional": false,
        "isLooped": false
    }

to?: StatusDetails[];

This also applies in both version2 and version3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates a reported issue or malfunction that needs fixing.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions