0

When I use the Webservice of Jira, I need to use the method getIssuesFromJqlSearch to describe a certain (JQL) Query. But it returns me "No such operation 'getIssuesFromJqlSearch'". Is this method in Jira 4.01 not implemented yet?

BTW: I need a method to get all Issues from one specific project, without creating filters first. This was my first way to find a workaround, because there is no function getIssuesFromProject.

If there is no way to fix the problem with the JQL method, I try to take RSS XML View with the URL jql statement like SearchRequest.xml?jqlQuery=project+%3D+Testproject&tempMax=1000. But this is not my favorite.

4

4 回答 4

1

当前版本的jira4r 真的很老了。实际源代码已更新,但 gem 没有更新,因此我将存储库克隆到 github并发布了我自己的gem jira4r-jh,它适用于最新的 jira api 版本。

于 2011-01-01T23:46:01.313 回答
1

我刚刚使用soapUI 在jira.atlassian.com 上调用getIssuesFromJqlSearch,它运行良好。你安装的是同一个版本吗?无论如何,您可以使用soapUI 来分析WSDL 并测试所有方法:然后您将隔离问题出在您的JIRA 上还是与调用该方法的代码有关。

顺便说一句,在 JIRA 客户端中,我们确实使用 RSS XML 来下载大部分信息,而且还不错。如果您对这种方法有任何疑问,请告诉我。

于 2010-02-11T12:19:40.100 回答
0

您安装了哪个版本的 Jira ???...如果它是 3.1x,那么它将无法工作。仅 jira 版本 4.X 支持 getIssuesFromJqlSearch 方法。

问候

于 2010-04-19T08:37:08.717 回答
0

这适用于我使用soapUI,但不适用于 jira4r,运行 4.01。问题在于jira4r(我正在运行 v0.3.0)。似乎 wsdl 和相关的驱动程序代码是硬连线的,这不包括“getIssuesFromJqlSearch”调用。搜索ruby/gems/1.8/gems/jira4r-0.3.0一下,看看我的意思。搜索“getVersions”揭示了这一点:

./lib/jira4r/v2/jira_soap_service_driver.rb
./wsdl/jirasoapservice-v2.wsdl

搜索“getIssuesFromJqlSearch”时什么也没有显示。

我通过替换./wsdl/jirasoapservice-v2.wsdl我的Jira实例中的版本(它位于http://your-jira-instance/rpc/soap/jirasoapservice-v2?wsdl)解决了这个问题,然后./lib/jira4r/v2/jira_soap_service_driver.rb通过添加以下内容来适当地修补(看起来它是从 WSDL 自动生成的):

[ XSD::QName.new(NsSoapRpcJiraAtlassianCom, "getIssuesFromJqlSearch"),
  "",
  "getIssuesFromJqlSearch",
  [ ["in", "in0", ["::SOAP::SOAPString"]],
    ["in", "in1", ["::SOAP::SOAPString"]],
    ["in", "in2", ["::SOAP::SOAPInt"]],
    ["retval", "getIssuesFromJqlSearchReturn", ["Jira4R::V2::ArrayOf_tns1_RemoteIssue", "http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "ArrayOf_tns1_RemoteIssue"]] ],
  { :request_style =>  :rpc, :request_use =>  :encoded,
    :response_style => :rpc, :response_use => :encoded,
    :faults => {"Jira4R::V2::RemoteException_"=>{:use=>"encoded", :name=>"RemoteException", :ns=>"http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", :namespace=>"http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", :encodingstyle=>"http://schemas.xmlsoap.org/soap/encoding/"}} }
],

显然,如果jira4r从您的实例下载正确的 WSDL 会很好,以避免这些类型的版本不兼容 :)

于 2010-04-29T03:58:02.837 回答