Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Float value #1

Open
ashrafalzyoud opened this issue Jan 30, 2024 · 2 comments
Open

Float value #1

ashrafalzyoud opened this issue Jan 30, 2024 · 2 comments

Comments

@ashrafalzyoud
Copy link

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?!

@ashrafalzyoud
Copy link
Author

@HiroM320

@HiroM320
Copy link
Owner

HiroM320 commented Jan 31, 2024

Hi @ashrafalzyoud .

I could not be of help, because this is a browser extension.

I'll write in README.md later that this is an browser extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants