Skip to content

Exception when getting issues: Issue 'XXX' has zero or multiple string values for field 'subsystem'. #22

@SaschaWeisenberger

Description

@SaschaWeisenberger

We don't have fields of type subsystem in this project, so I wonder why it even tries to parse it.
Here is my code:
`var ytClient = new YouTrackClient("xxx", "xxx", "xxx");

        var projectRepo = ytClient.GetProjectRepository();

        var project = projectRepo.GetProject("SD");

        foreach (var issue in project.GetIssues())

        {

            Console.WriteLine(issue.Description);

        }`

At "GetIssues" the exception is thrown.

EDIT:
I provided an empty string as defaultValue here:
https://github.com/Saulis/YouTrack.Rest/blob/master/YouTrack.Rest/Deserialization/Issue.cs#L89
Now it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions