【发布时间】:2015-03-12 09:24:24
【问题描述】:
我必须从 JIRA 数据库中获取一些数据并创建一个视图来显示它们。
在我们的 JIRA 中,我们有大约 100 个项目。我们需要创建一个 Oracle 视图来可视化以下数据。
我们的工作流程有以下状态 打开 使固定 解决 测试 证实 关闭 拒绝
For a single project, if issues are Delivery-CR, Fault-Bug, Fault-Specification, Fault-Configuration or Fault-Testing we need to create a view to visualize following data.
• transition date – open to fix
• transition date – fix to resolved
• transition date – resolved to test
• transition date – test to validate
• Issue type
• Status
• Fix version
Note that Issue type, Status and Fix version are on CHANGEITEM table. I can't find a table to get transaction dates.
We are using JIRA 6.3.7 and Oracle 11g database
我尝试了以下查询,但没有成功。
select created, issueid, ci.oldstring, ci.newstring, ci.oldvalue, ci.newvalue from changegroup inner join changeitem ci on changegroup.ID = ci.groupid where issueid in (select ID from JIRAISSUE where PROJECT in (select ID from PROJECT where PNAME = 'Singapore Exchange Post Trade') and ISSUETYPE in (select ID from ISSUETYPE where PNAME in ('Delivery-CR', 'Fault-Bug', 'Fault-Specification', 'Fault-Configuration', 'Fault-Testing'))) where ci.oldstring in('Open','Fix','Resolved','Test','Validate','Closed','Rejected');
谁能告诉我哪里出错了。
【问题讨论】:
标签: sql database oracle11g jira