Custom rules can be activated on projects and thanks to those you can specify to the system which rule you have to respect to close the project. Some examples are: you can close your project only if progress is more than 7’% ore if all ToDos on that project are closed.
You can write your rules according to your needs in Json format. The object reference can help you finding the specific filed you need to test.