我很擅长使用Jira的python API(Jira的API时期的新功能)。我试图从过滤器中获取所有问题。我从favourite_filters(" my")方法中获取了我想要的过滤器,但是从过滤器中获取问题的所有方法似乎都需要过滤器ID,而我无法找到从名称中获取或直接获取。到目前为止,我有以下代码:
def get_user_filter_list(self) -> None:
"""Get User Filters List from Jira Server"""
self.filters_combo["values"] = self.jira.favourite_filters() # favourite_filters() returns filter names, not IDs
def draw_issues(self) -> None:
"""Draw Issues from selected filter"""
if self.filters_combo.get() != "" or self.filters_combo.get() is not None:
filter_id = SOME_WAY_TO_GET_FILTER_ID()
for issue in self.jira.search_issues("filter={FILTER_ID}".format(FILTER_ID=filter_id)):
print(issue)
由于