What formula is used to calculate the% of RoadMap (Closed and Finished)

Added by Eduardo Sganderla 5 months ago

On the RoadMap page you have two% closed and finished. I need the formula used to perform the calculation.

Att.

Replies (3)

RE: What formula is used to calculate the% of RoadMap (Closed and Finished) - Added by Mischa The Evil 5 months ago

As can be seen in the respective view (source:/trunk/app/views/versions/_overview.html.erb@19983#L17 and beyond), the methods you are looking for are:
  • version.visible_fixed_issues.closed_percent
  • version.visible_fixed_issues.completed_percent

These two methods are part of several association extensions that are defined on the fixed_issues association (source:/trunk/app/models/version.rb@19983#L119) in a named extension module (FixedIssuesExtension). This module resides prior to the Version class in source:/trunk/app/models/version.rb@19983#L20 and beyond.

Via the two mentioned methods you'll ultimately be guided to the private issues_progress method where you can find the algorithms that are used to calculate the percentages.

RE: What formula is used to calculate the% of RoadMap (Closed and Finished) - Added by Eduardo Sganderla 5 months ago

Thanks for returning Mischa The Evil

However my doubt still persists, I am looking for the formula used for the calculation. Why am I using redmine data to display in another tool (DataBase).

RE: What formula is used to calculate the% of RoadMap (Closed and Finished) - Added by Mischa The Evil 5 months ago

Eduardo Sganderla wrote:

[...] Why am I using redmine data to display in another tool (DataBase).

I don't understand what you mean by this.

Anyway, if you need more information I suggest you take a look at #2182 which introduced (the base of) the currently used algorithm(s).

(1-3/3)