State tax filing

When filing taxes for New York, do I have to report income earned in another state as a resident in that state to New York?

 

For example: If I made $10K as a resident of New York and $20K as resident of another state, do I have to report all $30K to New York? Or I can I just report the $10K made in New York (leaving out the $20K from NY)?