You must complete actions to earn stars, which count toward finishing a task. You'll need to complete tasks for each part before moving on to the next chapter.
Each chapter has a certain number of parts to it. After the first chapter, which is the tutorial, you'll start your journey at Hogwarts.