Task analysis considers the user path as a flow chart. While user journey is more comprehensive and considers how the user feels as he/she moves through different stages of his task. For an objective view of user tasks, especially to create screens, task flow is used. While, to improve UX and to find what are the current customer pain points and frustrations, customer journey or user journey is mapped out. User journey can also include mentions of user comments & expressions at each stage of his journey.