LoginSignup
1
1

More than 5 years have passed since last update.

Redmineで特定のプロジェクト名・バージョン名から残工数を算出するSQL

Last updated at Posted at 2017-12-15

です。
動作環境:redmine-3.3.3-1

本当はバーンダウンチャートを実現したかったんですが、
下手にプラグイン入れて壊れるのが怖ったので…。

スキーマはbitnami_redmine前提です。

残工数算出SQL
select
  sum(estimated_hours * (100 - done_ratio) / 100) as '残工数(h)' 
from
  bitnami_redmine.issues i 
  left join bitnami_redmine.projects p 
    on i.project_id = p.id 
  left join bitnami_redmine.versions v 
    on p.id = v.project_id 
    and i.fixed_version_id = v.id 
where
  p.name = 'プロジェクト名' 
  and v.name = 'バージョン名'
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1