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

StateMachineIssueCustomField deserialization failing #124

Closed
Muhahe opened this issue Mar 7, 2023 · 1 comment
Closed

StateMachineIssueCustomField deserialization failing #124

Muhahe opened this issue Mar 7, 2023 · 1 comment

Comments

@Muhahe
Copy link

Muhahe commented Mar 7, 2023

Expected behavior

Ability to fetch issue from project that uses state machine.

Actual behavior

InvalidCastException: Unable to cast object of type 'YoutrackSharp.Generated.StateBundleElement' of type 'YouTrackSharp.Generated.EnumBundleElement'

Steps to reproduce the behavior

  1. Create project with State field
  2. Attach simple state machine to that field
  3. Create simple issue in the project
  4. Establish youtrack sharp connection to that project
  5. get issue service
  6. try get issue by GetIssue() method on issue service

youtrack version: 2022.3.65372 youtrackSharp version: 2022.3.0

image
image

Muhahe added a commit to Muhahe/YouTrackSharp that referenced this issue Mar 7, 2023
@rekolobov
Copy link
Member

rekolobov commented Mar 16, 2023

@Muhahe Hello, thank you for the report and sorry for the late reply.
Indeed, that's my oversight, even more so given that this has already happened once in #112
I've committed the fix in ae84138 along with the tests for all field types to not miss similar stuff again.

Expected to release in the scope of 2022.3.1 tomorrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants