Is there a way to move the closed and active task to next sprint which is part of a story without manually moving each of the closed task
There is no automatic way to move the closed and active task to next sprint which is part of a story.
You can manually reassign the closed or active tasks to next sprint in Sprint backlog.
Please refer to the doc End-of-sprint activities for the details.