State tax filing

Do I then include the amount only for the months that we were residents in Oregon? We moved to another state halfway through the year.