As Lenin mentioned you can't set Security Level based on status
But there is a workaround to achieve, you can try out this if suits you
You can add a post-function in Done transition to update Security Level to required one
JSU and Scriptrunner provides post-function to update Security Level field, some other plugins also may provide this option
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events