If I have a table like
task_id | state --------+------------ 1 | NULL --------+------------ 1 | RESOLVED --------+------------ 2 | NULL --
here is my approach :
Select * from yourTable where state is null and task_id not in (select task_id from yourTable y where state is not null )