title: Azure DevOps: Custom condition on task to be run if anything failed
body: <p>I want to send the notification if anything in the stage fails. How can I set the condition in the Release pipeline's task so the task is run when anything previously failed?</p>
  
  <p>The marked option works only for the immediate predecessor.
  <a href="https://i.stack.imgur.com/udaHN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/udaHN.png" alt="enter image description here"></a> </p>
  
  <p>But consider a situation there is a task which failed, then there is a task which will be run always and after that one is the task I want to run if anything fails.</p>