I am developing a plugin that, among other things, should reopen issues. Looking at the code base, I have some doubts... For example, the “bug_api.php” file contains a “bug_reopen()” function ... that is not used anywhere else. The bug tracker itself reopens bugs in one large “bug_update.php” file used for all possible issue changes, and this is the only place where the ‘EVENT_UPDATE_BUG’ event is sent (this event is not triggered via SOAP).
What is the correct and modern way to change the status of a bug? What should happen when a bug is updated?