如何从 Jira 项目获取史诗列表

问题描述 投票:0回答:1

因此,我将 Java 中的 Rest API 与 Axxios 一起使用,并遇到了这样的问题:即使我正确地从 Jira 检索史诗,注释部分也是空的/未定义,尽管史诗中存在注释。我使用以下代码:

this.getRestApiClient(3)
        .get(` project = ${projectIdOrKey} AND search?jql=issuetype = Epic`)
        .then(async (response) => {
          const epics: Promise<Issue[]> = Promise.all(

Issue[] 对象代表每个史诗及其相应的属性,例如issuesKey、summary 等。这里的问题是,所有其他属性都不为空,而 comment 属性为空。

我已经尝试过调试它,但我想不出其他方法

typescript jira-rest-api
1个回答
0
投票

您需要使用第二个 http get 调用来获取每个问题的评论。

HTTP GET

https://<jiraserver>/rest/api/2/issue/<issue_ID>/comment
© www.soinside.com 2019 - 2024. All rights reserved.