Is it mandatory to fill in all the fields while querying in issue tracker?

No. Required fields are indicated with a red asterisk. It is possible to choose only the required fields to narrow down the query for attaining optimum query results.

For more information about working with Issue Tracker see: Working with Issue Tracker

Related information
Working with Issue Tracker