Power Scripts™ for Jira (server)
We want to restrict the sub-tasks according to the issue types. For example, if issue type is New Feature or Improvement, we want to remove from the list of available sub-tasks the following one: Sub-task (we'll allow only other types of subtasks, never the standard one)
By using lfRestrictSelectOptions SIL™ routine we'll easily manage to hide some sub-task issue types for certain projects. All you have to do is to create the following script and associate it with the main Live Fields configuration on your project, as described on the Live Fields page.