在项目中查找最高 JIRA 问题 ID 的有效方法 [英] Efficient ways to find the highest JIRA issue ID in a project

查看:129
本文介绍了在项目中查找最高 JIRA 问题 ID 的有效方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 JIRA SOAP API 来优雅地确定某个项目中 JIRA 问题的所有 ID 号中最高的 ID 号.上限很好;我不需要确切的答案.

I am trying to use the JIRA SOAP API to elegantly determine the ID number that is the highest among all the ID numbers of JIRA issues in a certain project. An upper bound is fine; I do not need the exact answer.

我曾考虑通过查找现有问题的数量来执行此操作,但我没有找到一种很好的方法来执行此操作.我也想过,也许我可以创建一个新问题,并使用新问题的ID号作为问题数量.这不是一个很好的方法,因为我会遇到一个毫无意义的额外问题.

I was thinking of doing this by finding the number of existing issues, but I did not find a nice way to do this. I also thought that perhaps I could create a new issue and use the ID number of the new issue as the number of issues. This is not a very good way of doing this as I then have an extra issue that is meaningless.

有什么想法吗?

推荐答案

我过去也遇到过这个问题,只是使用了如果连续 5 个问题无法检索,那么您已经到达最新问题的方法.当一个问题被移动到另一个项目或被删除时,问题键的顺序就会出现漏洞.

I've had this problem in the past and just used the approach that if 5 consecutive issues can't be retrived, then you've reached the newest issues. When an issue is moved to another project or deleted, there will be a hole in the sequence of issue keys.

我认为 2^16 的二进制切割也可以涵盖大多数情况.

I suppose a binary chop from 2^16 would cover most cases too.

这篇关于在项目中查找最高 JIRA 问题 ID 的有效方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆