新创建的问题(JIRA 和 python)

Newly created issues (JIRA and python)

我正在开发使用 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 查询 - 这是来自 Atlassian 博客的 get started with JQL page

从底部的示例看来,您可以像这样按相对日期查询:

assignee is EMPTY and created < -1d

希望对您有所帮助。