We recently started using JIRA Portfolio, I imported all epics and stories of our current Scrum board and started experimenting with the automatic planning options of Portfolio.
One thing I noticed immediately is that stories which are already marked as 'Done' (because we finished them before we started using Portfolio) are still included in future sprints. It does not make any sense seeing a story which is already finished being placed in a sprint which will start in 4 weeks. Also, but I am not sure, they prevent other stories which are not done from being planned earlier making the project seem longer than it actually is.
How do I prevent stories which are already finished from being used by JIRA Portfolio?