(originally raised over here)
Expected Behavior
A webhook that only allows Mute/Unmute events, eg:

should not allow other events to be selected.
Current Behavior
The webhook is showing all the boxes as ticked, but disabled:

Errors show as
[2023-07-18 02:16:17,787] ERROR [@7438424f'; Normal executor 28] - jetbrains.buildServer.SERVER - AbstractWebHookExecutor :: trackingId: dadfab32-86b1-4bab-8c1a-afd38e6870e4 :: projectId: OctopusDeploy_OctopusServer_CorePlatform :: webhookId: id_905369674 :: templateId: buildmonitormutes, errorCode: 902, errorMessage: Template 'buildmonitormutes' does not support build state 'beforeBuildFinish'
Steps to Reproduce (for bugs)
It appears that this happens when you select a template that allows build events (which auto-ticks them), and then change to one that only allows mute events - the fields get disabled but are still ticked.
Workaround
Selecting a different template (that supports build events), de-selecting the build events, then changing back to the mute/unmute template works.
Your Environment
- tcWebHooks Version:
1.2.3
- TeamCity Version:
2023.05.1
- TeamCity server Operating System: Linux (ubuntu)
- Are you using a WebHook Template?: Yes
(originally raised over here)
Expected Behavior
A webhook that only allows Mute/Unmute events, eg:

should not allow other events to be selected.
Current Behavior
The webhook is showing all the boxes as ticked, but disabled:

Errors show as
Steps to Reproduce (for bugs)
It appears that this happens when you select a template that allows build events (which auto-ticks them), and then change to one that only allows mute events - the fields get disabled but are still ticked.
Workaround
Selecting a different template (that supports build events), de-selecting the build events, then changing back to the mute/unmute template works.
Your Environment
1.2.32023.05.1