Outside state 529 Transfer to Iowa 529

I am an Iowa resident. I started a 529 for 2 of my kids in an outside state because I didn't do enough research initially. Eventually I realized that I can only get the tax deduction if I use the Iowa 529s. So in 2023 I transferred them from the other state (New Hampshire or one of the other "universal" ones. Can't remember off the top of my head), where I never claimed any deductions on them, to Iowa. I also continued contributing to them. Can I claim both the transferred amounts now and the amounts I have been contributing after the transfer or just what I contributed in 2023?