I found out that you can't actually filter a subtask by it's parent issue fields in JQL without buying a plugin.
And I was very disappointed, the logic behind the parent-Child/Header-Detail is to group a bunch of data into an umbrella of a kind. Which means that all these child objects actually share the properties of the parent issue but differs in the detail, and that's why its frustrating not to be able to search through the parent issue's fields.
I will probably solve this using automation rule(by copying the needed fields onto the subtask), but that's just an extra work for such a basic function, I'm not willing to pay for a plugin for this purpose...
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get the most out of Jira
Start with basic Jira terms and navigation. Then, discover how to effectively organize work and customize your Jira experience.
Learning Path
Atlassian tools and practices for developers
Reduce context switching by making Jira more efficient, and apply collaboration best practices for streamlined team operations.
Atlassian Certified Associate
Jira Essentials certification
Validate your knowledge of key Jira concepts like using work items, spaces, boards, and Rovo.