我使用的是Jira C#SDK 2.4.0
我需要在创建问题之前创建一个新的Epic,因此我可以为它们分配Epic Link。
Jira jiraConnection = new Jira(url, user, password);
Issue issue = jiraConnection.CreateIssue(projectKey);
issue.Type = "Epic";
issue.Summary = "My first epic";
issue.SaveChanges();
这给了我以下错误,告诉我" Epic Name"是必需的。
com.atlassian.jira.rpc.exception.RemoteValidationException: {customfield_10008=Epic Name is required.} : []
这在Jira中是有道理的,它是必需的领域。然后我添加了以下行
issue["customfield_10008"] = "EpicTest"; //epic name field
我收到以下错误
Could not find custom field with name 'customfield_10008' on the JIRA server. Make sure this field is available when editing this issue. For more information see JRA-6857
似乎并不是一个史诗般的名字" Issue对象中的属性。
答案 0 :(得分:3)
我找到了解决方案,毕竟很容易
issue.CustomFields.Add("Epic Name", "test");