Skip to content

How to create a new issue? #95

@WKleinschmit

Description

@WKleinschmit

Hello,
I'm using version 2019.2.0 on a version on a 2019.2 server and I want to create a new issue.
This is my code:

                        BearerTokenConnection connection = new BearerTokenConnection(
                            "https://youtrack.example.com/",
                            "perm:Ym...Dfg");

                        IIssuesService issuesService = connection.CreateIssuesService();

                        YouTrackSharp.Issues.Issue ytIssue = new YouTrackSharp.Issues.Issue
                        {
                            Summary = summary,
                            Description = descriptionBuilder.ToString(),
                        };

                        string ytIssueID = await issuesService.CreateIssue("SIMNC", ytIssue);

During the call to CreateIssue my program just ends without any error message and the issue is not created.
What am I doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions