There is no out of the box implementation available in jira to do this however a simple workaround can be that you create a copy of your workflow for issue type subtask and in the transitions leading to Closed status you define who would have the permission to do so.
You leave out this condition for the workflow which you apply to other issue types;
so that way anyone can go in and close any other issue type except sub-task.
Let me know if you want me to clarify my point.
Here's the link explaining you how to configure workflow schemes
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs