State tax filing

For IRA distributions, do I need to pay state taxes to each state that had capital gains over time? If yes, how do I allocate?  thanks