JetBrains / JetBrains/YouTrackSharp
BearerTokenConnection not working
- 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();

Contributor guide
Assessment
This issue has not been assessed yet.