一种访问 FogBugz 中任何 XML 记录的上次更新时间的方法
在我的应用程序中,我以 XML 的形式访问 FOGBUGZ API 来检索数据。它运行良好。但问题是,我们一旦开始,就需要从起点提取整个数据。这里我在网上搜索了很多,但我找不到FogBugz维护的任何状态日志来检查数据是否更新。
FogBugz URL ::
XML 代码示例
<case ixBug="22547" operations="edit,assign,resolve,reactivate,close,email,remind">
<ixPersonAssignedTo>3</ixPersonAssignedTo>
<sPersonAssignedTo>Person One</sPersonAssignedTo>
<ixFixFor>1797</ixFixFor>
<sFixFor>XXX</sFixFor>
<hrsElapsed>2.17582988739014</hrsElapsed>
<ixProject>306</ixProject>
<sProject>Project XXX</sProject>
<dtDue/>
<ixBug>22547</ixBug>
<sTitle>MiniReview</sTitle>
<ixArea>3383</ixArea>
<ixCategory>2</ixCategory>
<ixPriority>6</ixPriority>
<hrsCurrEst>2</hrsCurrEst>
<sVersion>TF201105</sVersion>
<ixMailbox>0</ixMailbox>
</case>
In my application I am accessing FOGBUGZ API in the form of XML to retrieve data. It is running fine. But Issue is that, we ever it start, it takes pull of whole data from starting point. Here I searched a lot on Internet, but i could not find any status log maintaining by FogBugz to check whether data is updated or not.
FogBugz URL ::
Example of XML CODE
<case ixBug="22547" operations="edit,assign,resolve,reactivate,close,email,remind">
<ixPersonAssignedTo>3</ixPersonAssignedTo>
<sPersonAssignedTo>Person One</sPersonAssignedTo>
<ixFixFor>1797</ixFixFor>
<sFixFor>XXX</sFixFor>
<hrsElapsed>2.17582988739014</hrsElapsed>
<ixProject>306</ixProject>
<sProject>Project XXX</sProject>
<dtDue/>
<ixBug>22547</ixBug>
<sTitle>MiniReview</sTitle>
<ixArea>3383</ixArea>
<ixCategory>2</ixCategory>
<ixPriority>6</ixPriority>
<hrsCurrEst>2</hrsCurrEst>
<sVersion>TF201105</sVersion>
<ixMailbox>0</ixMailbox>
</case>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想查看 Case 是否已更新,只需检查
ixBugEventLatest
(不要忘记将其包含在cols
列表中)。每当大小写改变时,该字段就会增加。对于其他列表(人员、区域等),我认为没有好方法来查看它们是否已更改,然后再次下载完整列表。更新:“更改”信息的另一个良好来源是
dtLastUpdated
字段,其中包含案例上次更改的日期 (UTC)。顺便说一句,您可能会更幸运地在 http://fogbugz.stackexchange.com/ 获得好的答案
If you want to see if Case was updated, you can simply check
ixBugEventLatest
(don't forget to include it incols
list). This field increases whenever case is changed. For other lists (people, areas, ...) I don't think there is good way to see if they have been changed, other then downloading full lists again.Update: another good source of "change" information is
dtLastUpdated
field, which contains date (UTC) of last change to the case.Btw, you may have more luck getting good answer at http://fogbugz.stackexchange.com/