Thank you for using Ubuntu and reporting a bug. I've marked your request as Wishlist as this would be a nice feature to have.
As for user.rules, you should not edit this file directly as it is managed by ufw itself (as you saw). Instead, add any rules to one of the /etc/ufw/*.rules files. See 'man ufw' and 'man ufw-framework' for details.
Thank you for using Ubuntu and reporting a bug. I've marked your request as Wishlist as this would be a nice feature to have.
As for user.rules, you should not edit this file directly as it is managed by ufw itself (as you saw). Instead, add any rules to one of the /etc/ufw/*.rules files. See 'man ufw' and 'man ufw-framework' for details.