TfsNotificationRelay
TfsNotificationRelay copied to clipboard
Possible to use references from Microsoft.VSTS.Common?
More specifically trying to use Microsoft.VSTS.Common.Priority and Microsoft.VSTS.Common.Severity.
What do you want do with them?
To display those fields in a notification, you should be able to add them to wiCreatedDisplayFields (displayed during WorkItemCreated) or wiChangedDisplayFields (displayed during WorkItemChanged).
To have a rule that matches when any of them change, you'd add them to the workItemfields in the rule element.
Attempting to get priority and severity to be displayed for each bug notification. I've added them to workItemfields with no luck. However, system.state, system.iterationpath, system.reason, etc. all seem to work fine.
Like I said, workItemfields doesn't determine what is displayed, it's those other two settings that are of interest to you.
I tried it and the way it's coded, it only works when you change the values. These aren't core fields so they will only show up in changed fields in the event. I should probably merge those two structures and look in both. This is what it looks like if I have added them to wiChangedDisplayFields and change both of them.

You probably are interested in seeing them when the bug is first created, right?
Ah OK I think I have a better idea of it now. Thanks!