Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Done ratio float #9

@ashrafalzyoud

Description

@ashrafalzyoud

Hi thx for your lovely plugin
If I can asking u?!

1_ I'm changing the type of column done_ratio to float
2_ setting the done ratio calculation from issue Field
3_ setting to calculate done ratio from subtask

4_ I using formula
@issue.done_ratio = @ issue.custom.field.value(1).to_f.round(2)

5_ every things in child issue okay with float numbers done ratio

6_ the problem in parent task
The done ratio appear 61%
I need look to 60.69%

  Example 
  child1 (:done_ratio => 10.12)
  child2 (:done_ratio => 20.23)
  child3(:done_ratio => 90.45)
  (10.12 + 20.33 + 90.44) / 3 = 12
   parent.issue.done_ratio=60.49

If u can help where in core redmine code how calculate done ratio round

Or by using your plugin?!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions