我想创造问题。可以找到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
的定义。什么是错的?
答案 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);