Ruby 如何使用jira soap记录给定问题的工作?

Ruby 如何使用jira soap记录给定问题的工作?,ruby,soap,jira,Ruby,Soap,Jira,我正在开发一个RubyonRails应用程序,它通过JiraSOAP连接到Jira。我浏览了JIRASOAPAPI文档,但找不到记录问题时间的方法。我必须使用什么方法允许用户记录某个问题的时间?addWorklogAndAutoAdjustRemainingEstimate是我在脚本中使用的方法 这是一段可能对您有用的python代码: d = datetime.datetime.now() timestamp = "%s-%02d-%02dT%02d:%02d:00+01:00"%(d.yea

我正在开发一个RubyonRails应用程序,它通过JiraSOAP连接到Jira。我浏览了JIRASOAPAPI文档,但找不到记录问题时间的方法。我必须使用什么方法允许用户记录某个问题的时间?

addWorklogAndAutoAdjustRemainingEstimate是我在脚本中使用的方法

这是一段可能对您有用的python代码:

d = datetime.datetime.now()
timestamp = "%s-%02d-%02dT%02d:%02d:00+01:00"%(d.year,d.month,d.day,d.hour,d.minute);

log = self.client.factory.create("ns0:RemoteWorklog")
log.comment = comment # a string
log.timeSpent = time # in the usual format (2h30m )
log.startDate = timestamp

# task is the name of the tast (a string)
self.client.service.addWorklogAndAutoAdjustRemainingEstimate(self.auth,task,log)
通过这些方法,其中,
Xxx
是如何处理估算值。

对于ruby开发人员, 可以通过以下方式访问jira4r gem中的工作日志类:
jira4r::V2::RemoteWorklog