jira soap create issue不包含setSummary的定义

时间:2016-01-25 07:24:49

标签: c# soap jira

我想创造问题。可以找到Wsdl here。我使用Visual Studio和c#创建了客户端。 我可以登录

JiraSoapServiceService jiraSoapService = new JiraSoapServiceService(); 
jiraSoapService.login(jiraLogin, jiraPassword); 

我可以获得信息

jiraSoapService.getIssue(auth, key);

但我无法创建问题

RemoteIssue issue = new RemoteIssue(); 
issue.setSummary(SUMMARY_NAME);

因为它给我JIRA_API.box.RemoteIssue不包含setSummary的定义。什么是错的?

1 个答案:

答案 0 :(得分:1)

RemoteIssue issue = new RemoteIssue();
            issue.project = "[NAME]";
            issue.key="[KEY]";
            issue.type = "3";
            RemoteComponent component = new RemoteComponent();
            component.name = "[COMPONENT_NAME]";
            issue.components = (new RemoteComponent[] { component });
            issue.summary = "[SUMMARY]";
            issue.assignee = "[ASSIGNEE]";
            RemoteIssue returnedIssue = jiraSoapService.createIssue(token, issue);