We also have script runner , can it be achieved by it ?
You can't search the history with the default JQL (except by using was and changed).
In Jira, you can see the history of flags on the single issue level while opening the Activity section.
I can also suggest checking Issue History for Jira app where you can get a report for some project, sprint, or dates (filtering the items you need).
If you add the flagged field to the grid's columns, you'll see flag changes for the list of issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.