我正在开发使用 python 访问 Jira 的简单应用程序。 我设法获取所有问题如何获取唯一新创建的问题?
from jira import JIRA
jira = JIRA(basic_auth=('username', 'password'), options={'server':'https://MY_JIRA.atlassian.net'})
got = 50
total = 0
while got==50:
issues = jira.search_issues('project=JA', startAt = total)
....
got = len(issues)
total += got
最佳答案
获取新创建的问题将涉及您创建一个新的 JQL 查询 - 这里是 get started with JQL page来自 Atlassian 博客。
从底部的示例来看,您似乎可以按相对日期进行查询,如下所示:
assignee is EMPTY and created < -1d
希望对您有所帮助。
关于python - 新创建的问题(JIRA 和 python),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49348613/