I am setting up my email alerts in TFS 2010 using the Alerts Explorer from the TFS Power Tools.
I want to receive an email when a build either fails or partially succeeds. The filter seems to be too basic to achieve this.
I have created the filter as follows
"TeamProject" = 'My Project' AND "StatusCode" = 'Failed' OR "StatusCode" = 'PartiallySucceeded'
but obviously this sends me an email whenever any project's build partially succeeds. The filter I actually want is
"TeamProject" = 'My Project' AND ("StatusCode" = 'Failed' OR "StatusCode" = 'PartiallySucceeded')
Is there a way to achieve this? Can I input the value in such a way so it reads IN ('this' or 'that')?
I don't really want to have to create separate email rules for each status I'm interested in if I can help it.
Ok, I finally found the solution.
On the alert definition tab select two or more rows and the buttons just above the table light up. One of these is "Group selected clauses" and will create a sub clause with the results I was after.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With