TfsNotificationRelay icon indicating copy to clipboard operation
TfsNotificationRelay copied to clipboard

Possible to use references from Microsoft.VSTS.Common?

Open kleeklee opened this issue 8 years ago • 4 comments

More specifically trying to use Microsoft.VSTS.Common.Priority and Microsoft.VSTS.Common.Severity.

kleeklee avatar Feb 01 '17 18:02 kleeklee

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.

kria avatar Feb 01 '17 20:02 kria

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.

kleeklee avatar Feb 01 '17 20:02 kleeklee

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. image

You probably are interested in seeing them when the bug is first created, right?

kria avatar Feb 01 '17 21:02 kria

Ah OK I think I have a better idea of it now. Thanks!

kleeklee avatar Feb 01 '17 21:02 kleeklee