我正在尝试针对JIRA API运行查询并获得结果,我可以看到每个问题通过状态更改的日期和时间。
例如:运行查询以获取某个受让人的所有问题,并查看其他信息,以及每个问题从“打开”变为“已解决”的时间戳。
这可能吗?
编辑:我已经尝试扩展更改日志,但是虽然它告诉我票证经历了什么状态更改(例如,特定票证从“打开”转换为“已解决”,然后从“已解决”转换为“已关闭” ),它没有告诉我这些过渡发生的时间。答案 0 :(得分:2)
事实证明,显示状态更改的每个转换对象都有一个“已创建”字段,其中包含转换发生的时间和日期,我觉得这有点用词不当,但确实如此。扩展的更改日志对象中“history”数组中的示例对象:
{ "author" : { "active" : true,
"avatarUrls" : { "16x16" : "https://company.jira.com/secure/useravatar?size=xsmall&avatarId=10072",
"24x24" : "https://company.jira.com/secure/useravatar?size=small&avatarId=10072",
"32x32" : "https://company.jira.com/secure/useravatar?size=medium&avatarId=10072",
"48x48" : "https://company.jira.com/secure/useravatar?avatarId=10072"
},
"displayName" : "First Last",
"emailAddress" : "first.last@company.com",
"name" : "first.last",
"self" : "https://company.jira.com/rest/api/2/user?username=first.last"
},
"created" : "2013-04-17T16:21:13.540-0400",
"id" : "24451",
"items" : [ { "field" : "status",
"fieldtype" : "jira",
"from" : "5",
"fromString" : "Resolved",
"to" : "6",
"toString" : "Closed"
},
{ "field" : "assignee",
"fieldtype" : "jira",
"from" : "old.assignee",
"fromString" : "Old Assignee",
"to" : "first.last",
"toString" : "First Last"
}
]
}