How to make condition in Append query in secRights on specific category?

We have requirement in our environment that for specific request category we need to restrict access to requests opened with the same group only  but for specific request category not all of request categories.

i tried to add a condition to append query on the role but it apply the condition for all request categories.

Tags: