Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the IssueTransition interface the to field is incorrect #120

Closed
jamie-wearsafe opened this issue May 6, 2021 · 3 comments · Fixed by #119
Closed

In the IssueTransition interface the to field is incorrect #120

jamie-wearsafe opened this issue May 6, 2021 · 3 comments · Fixed by #119
Labels
bug Indicates a reported issue or malfunction that needs fixing.

Comments

@jamie-wearsafe
Copy link

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.

@MrRefactoring MrRefactoring added the bug Indicates a reported issue or malfunction that needs fixing. label May 6, 2021
@MrRefactoring
Copy link
Owner

This is an error in my code generator. I will fix this error manually, and after that, I will immediately fix the error in the code generator. This will remove similar errors in other places. But still, if you find such errors, create one more issue. :)

MrRefactoring added a commit that referenced this issue May 6, 2021
@MrRefactoring MrRefactoring linked a pull request May 6, 2021 that will close this issue
@jamie-wearsafe
Copy link
Author

jamie-wearsafe commented May 6, 2021 via email

MrRefactoring added a commit that referenced this issue May 6, 2021
* new telemetry methodName built

* new telemetry methodName built

* new telemetry methodName built

* new telemetry methodName built

* build fix

* lint fix

* new telemetry methodName built

* build and linter fixed

* #120 issue fixed

* test fixes

* 2.2.0
@MrRefactoring
Copy link
Owner

Fixed in v2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates a reported issue or malfunction that needs fixing.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants