问题标签 [youtracksharp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
558 浏览

c# - YouTrackSharp - EasyHttp Bad Request

I am occasionally receiving a bad request error message when making API requests via YouTrackSharp. This only happens when running on the server, if I debug the app locally (running on IIS, not IIS Express), it goes through appropriately. Has anyone experienced this behavior before, and any suggestions?

Exception


Calling Code


0 投票
1 回答
731 浏览

youtrack - 使用 YouTrackSharp 创建一个新问题

我正在尝试使用 YouTrackSharp 创建一个新问题,回到我的本地跟踪实例。我可以很好地搜索,所以我知道我的连接和凭据正在工作。

根据示例,我尝试了动态以及实例化问题()。

编译失败

此代码可编译,但在运行时无法将动态转换为问题参数,但“YouTrackSharp.Issues.IssueManagement.CreateIssue(YouTrackSharp.Issues.Issue) 的最佳重载方法匹配”有一些无效参数

0 投票
2 回答
454 浏览

c# - YouTrackSharp: can't get it to work

Trying to open an issue from a C# app.

Few issues:

1) UPDATE: I realize it only supports .NET Standard 1.3 = Framework 4.6; So no issue here.

2) I install version 2.0.31 (and less) - When I try to set up a connection, it says "Method not allowed":

connection.Authenticate throws the error.

3) If I don't specify other parameters in Connection and leave only the basic url, I get the following error (again in connection.Authenticate):

For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.

Can't seem to find much info on this online. Anyone has any idea what to do?

0 投票
1 回答
195 浏览

c# - 如何使用 YoutrackSharp 设置类型字段

我正在尝试从 C# 应用程序在 youtrack 中创建一个新问题。到目前为止一切正常,除了类型字段设置不正确。

我尝试将类型设置为整数(因为该字段实际上是一个枚举字段)以及一个字符串。两者都不会在问题中产生正确的类型,但它始终显示默认类型。

使用字符串

使用整数(枚举访问)

我希望问题的类型为“异常”,但始终保持默认值(在这种情况下为“任务”)

编辑:结果证明 SetField 命令工作正常。它不起作用的原因是由于 YouTrack 本身的限制,要求“例外”问题填写第二个字段“如何重现”。该命令本身实际上会引发异常(被调用代码捕获)