V1 APIを使用して新しいストーリーアセットを作成しようとしています。私は、エラーが発生します:VersionOne .NET SDK新しいアセットを作成する
「未処理の例外:VersionOne.SDK.APIClient.ConnectionException:エラーが---> System.Net.WebException出力ストリームに を書く:(400:リモートサーバーは、ER RORを返されたが)不正な要求---> VersionOne.SDK.APIClient.APIException:。Violation'Re quired'AttributeDefinition'Super'Story」
私は自分のコネクタを設定し、そうのような資産を作成しています:
V1Connector connector = V1Connector
.WithInstanceUrl("xxx")
.WithUserAgentHeader("NewApp", "1.0")
.WithAccessToken("xxx")
.UseOAuthEndpoints()
.Build();
IServices services = new Services(connector);
Oid projectId = services.GetOid("Scope:02284");
IAssetType storyType = services.Meta.GetAssetType("Story");
Asset newStory = services.New(storyType, projectId);
IAttributeDefinition nameAttribute = storyType.GetAttributeDefinition("Name");
newStory.SetAttributeValue(nameAttribute, "My New Test Story");
services.Save(newStory);
エラーが発生しました最後の行に私はこれをしばらく理解しようとしてきましたが、私は解決策を思いつきませんでした。誰か提案はありますか?ここで
は私が従うことをしようとしている例へのリンクです:https://community.versionone.com/VersionOne_Connect/Developer_Library/Get_an_SDK/.NET_SDK/Creating_Assets