如何按更复杂的条件(如" status changed to Reopened")筛选 Jira 事务?



以下是我的操作:我通过Rest API发送基本的JQL(类似于Jira的SQL-bug)查询,并解析生成的json,例如:

Jira.aligntech.com/rest/api/latest/search?jql=filter = 24808 AND priority in (Blocker, Critical)

我正在反序列化生成的Json,然后使用它来计算各种统计数据。我用C#有些过滤非常容易,例如查找所有已解决的问题等但我偶然发现了一些过滤需求,我不知道如何使用Jira的Json来实现这些需求:例如,我想做一些等效于:AND状态更改为Reopened当我看到Json时,在负责状态的部分,它是这个部分:

"status": {
"self": "https://jira.aligntech.com/rest/api/2/status/6",
"description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.",
"iconUrl": "https://jira.aligntech.com/images/icons/statuses/generic.png",
"name": "Closed",
"id": "6",
"statusCategory": {
"self": "https://jira.aligntech.com/rest/api/2/statuscategory/3",
"id": 3,
"key": "done",
"colorName": "green",
"name": "Done"
}
},

有没有什么方法可以让我在Json中使用这些信息通过"状态更改为XXX"来过滤问题?如果没有,请给我指另一条路?

您想要搜索问题历史记录。这可能会有所帮助。

最新更新