我在版本ID:“ 12345”和版本名称:“ ABCD”下遇到一些问题。我需要此版本下的所有问题列表或未解决的问题ID列表。
获取所有版本的代码:
jira = JIRA(options={'server': 'address', 'verify':'/path/to/ca.crt'}, basic_auth=("usrName","password"))
jra = jira.project('NAME')
versions = jira.project_versions(jra)
print(jira.version_count_unresolved_issues(VersionID) )
此后,我需要特定版本下的IssueID或名称。使用jira.version_count_unresolved_issues(projID)
,我可以获得许多未解决的问题。但不是名称或IssueID
答案 0 :(得分:0)
为了将来:
ver_isse_count = jira.version_count_related_issues(VersionID)
# getting the number of Issues under that Version
ver_un_isse_count = jira.version_count_unresolved_issues(VerID)
#getting the number of unresolved Issues under that version
query = jira.search_issues(
jql_str="project=NAME AND fixVersion=TYPE AND resolution=Unresolved"
)
for i in query:
print(i.id , '\t' , i.key)
issue_key = i.key