state tax on teachers pension from another state

Moved from Conn to Mass mid year. My wife gets a Conn teachers pension.  I believe when filing Conn state taxes, I can deduct 25% of her teachers income and pay tax on 75% of the income while we lived in Conn.  For the remaining 8 months of 2019 when we lived in Mass, how is that taxed? Can I still take the 25% deduction or any exemption from Mass state taxes?