如果您愿意编写脚本,那么您可以使用JIRA的REST API。它包含了资源retrieve work log信息:
GET /rest/api/2/issue/{issueIdOrKey}/worklog
它返回一个像这样的回应:
{
"startAt": 0,
"maxResults": 1,
"total": 1,
"worklogs": [
{
"self": "http://www.example.com/jira/rest/api/2/issue/10010/worklog/10000",
"author": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"displayName": "Fred F. User",
"active": false
},
"updateAuthor": {
"self": "http://www.example.com/jira/rest/api/2/user?username=fred",
"name": "fred",
"displayName": "Fred F. User",
"active": false
},
"comment": "I did some work here.",
"updated": "2017-07-12T08:30:10.234+0000",
"visibility": {
"type": "group",
"value": "jira-developers"
},
"started": "2017-07-12T08:30:10.234+0000",
"timeSpent": "3h 20m",
"timeSpentSeconds": 12000,
"id": "100028",
"issueId": "10002"
}
]
}
你最好还是需要找出一种办法,虽然找出所涉及的问题。
另外,还有一些插件会尽量简化时间跟踪。例如,Tempo具有“Tracker”功能,因此您只需单击开始/停止按钮即可生成工作日志。
谢谢,但没有显示记录了多少时间或记录了什么时间。 –