Justin Hartley will star in a new CBS series post-This Is Us.