JetBrains / JetBrains/YouTrackSharp

BearerTokenConnection not working

Open
#93 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
143
Forks
105
PR merge metrics
No merged PRs in 30d

Description

I was trying to add comment using code into particular youtrackitem.
but it is giving 404 error. not sure what is correct api url

var youtrackConnection = new YouTrackSharp.BearerTokenConnection("https://xxxx.myjetbrains.com/youtrack/api/", "token");

var issuesService = youtrackConnection.CreateIssuesService();

Task backgroundJobAwaiter = Task.Run(async () =>
{
try
{
await issuesService.ApplyCommand("Project-1090", command: "Comment", comment: "Test");
}
catch (Exception ex)
{
Console.Write(ex);
}
});

backgroundJobAwaiter.Wait();

![image](https://user-images.githubusercontent.com/40248398/67728171-3c53f000-fa12-11e9-93e8-f0c54d3b3214.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.