I think so yes. Write your query against the incident assignment object instead of incident. That way your list wull have just the assignments that have been made during the lfietime of your incident. Then use a criteria to include.exclude the ones you want.
I wish it were that simple Dave, I've tried that method and it appeared to work until I noticed that some of the tickets it was raising did have assignments to the groups I didn't want and it was just ignoring those assignments. If I give a little more of what I'm looking for. What we're trying to make is a query that will give a list of closed tickets that were fixed by First Line only to get a percentage of total tickets fixed at first line. All tickets are initially assigned to first line in an automated assignment when the ticket is opened to minimise orphaned tickets and from there first line have to assign the ticket on or close the ticket. As a result using your method (as I've tried) brings up every ticket logged (makes our figures look fantastic but unfortunately not correct ). There are a series of queues that only first line access; "Awaiting Further Information" and "Customer Contacted" are two of these so we would be looking for any tickets that had been in First Line, or the other two as above, but NOT in any other queue. I don't know if this is actually possible, but I'm really hoping it is.
If anyone has any suggestions here they would be gratefully received.