python - 新创建的问题(JIRA 和 python)

标签 python jira

我正在开发使用 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/

相关文章:

python - 根据其他列上的某些条件更新 dask 数据框中列的值

python - JIRA 标识符的正则表达式

java - 如何实现每30分钟登录一次的客户端?

error-handling - 用于获取工作日志的 JIRA REST API - "You do not have the permission to see the specified issue"

apache - JIRA 和 Confluence 都使用 AJP 协议(protocol)运行 - 如何?

python - 解析 MatchFirst 中的 Verilog 网络串联

python - Conda 和 Macports X11 安装 dlib 时发生冲突

python - 重命名非常大的 CSV 数据文件的列

python - 运行我的第一个Spark Python程序错误

jira - 将 JIRA Agile 用于 Scrum(来自 Rally 用户背景)