ii V I progression in the key of C is Dm7 G7 Cmaj7
For the above exercise, the notes are all within the chords itself.
This is an easy way to start learning walking bass as well.
Notice that the first note I played on the Cmaj7 is a E note instead of the root.
Since my last note on the G7 chord is a F, it will sound more smooth going to E which is the 3rd of a Cmaj7 chord.
It is not necessary to always land on the root note of the chord.
Experiment and have fun.
Cheers