如何检索';链接';使用JIRA python与JIRA票证关联?

如何检索';链接';使用JIRA python与JIRA票证关联?,python,jira,python-jira,Python,Jira,Python Jira,我正在尝试使用以下表达式检索有关JIRA票证的数据,包括链接: issue = self.jira.search_issues("key=MYPR-11", fields=["links", "worklogs", "created","timetracking", "updated", "status", "Severity", "priority", "type", "fixVersions", "affectedVersions","components", "labels", "repo

我正在尝试使用以下表达式检索有关JIRA票证的数据,包括链接:

issue = self.jira.search_issues("key=MYPR-11", fields=["links", "worklogs", "created","timetracking", "updated", "status", "Severity", "priority", "type", "fixVersions", "affectedVersions","components", "labels", "reporter", "assignee"])
但在查看可用字段时,似乎缺少“链接”:

print(dir(issue.fields))
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'assignee', 'components', 'created', 'customfield_10010', 'fixVersions', 'issuetype', 'labels', 'priority', 'reporter', 'status', 'timetracking', 'updated']

你知道我如何用“jira python”查询“links”信息吗?

我不太确定你想要什么
链接,但我想你需要问题链接。您使用了错误的字段名。该字段被称为
issuelinks
,而不是
links

issue = self.jira.search_issues("key=MYPR-11", fields=["issuelinks", "worklogs", "created","timetracking", "updated", "status", "Severity", "priority", "type", "fixVersions", "affectedVersions","components", "labels", "reporter", "assignee"])
如果您想拥有所有可用字段,请尝试
*all
以包含所有字段。

我不确定jirapython是否支持这一点

编辑


正如@Alex提到的:如果没有指定字段,则返回所有可用字段。

非常感谢;事实上,我认为根本不需要字段声明。默认值是返回每个字段。问题解决了…不客气:)issuelink
字段是您需要的字段吗?我会更新答案。