if you are using the built-in feature the JQL is Flagged = Impediment. And you can combine that with a search for a text in a comment using comment ~ "\"Whatever your comment is\""
See the "comment" field reference in the Advanced Searching documentation for everything related to JQL. Does that answer your question?
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events