If I have a table like
task_id | state --------+------------ 1 | NULL --------+------------ 1 | RESOLVED --------+------------ 2 | NULL --
Do a GROUP BY, use HAVING to return task_id having only null states.
GROUP BY
HAVING
select task_id from tablename group by task_id having max(state) is null