Redmine Auto Percent cloned from @escline which appears to be gone now. Modified to work in Redmine 3.3 and higher.
Automatically sets the percent done to 100% on Resolved or Closed.