You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(servicenow): stop one subblock id from carrying two value spaces
Subblock values are stored per block keyed by id, so an id reused across
operations keeps its value when the operation changes. Incident and change
shared `state`, and `closeCode`, `closeNotes`, `comments`, and the knowledge
search phrase were each reused for a different value space — so an incident
state could be written onto a change request, an incident close code sent as a
change close code, or an encoded query searched as knowledge text.
Give each value space its own subblock and republish it to the tool param from
the operation that owns it, the way targetState and approvalState already work.
The generic Table API ids stay exactly as they are, since renaming one would
orphan the stored value of every workflow already using those shipped tools.
The previous guard only compared seeded defaults, which is why this class stayed
hidden; the new one asserts against the merged params a tool actually receives.
@@ -771,7 +794,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
771
794
},
772
795
// State dropdowns — one per state model
773
796
{
774
-
id: 'state',
797
+
id: 'incidentState',
775
798
title: 'Incident State',
776
799
type: 'combobox',
777
800
options: optionalChoices(INCIDENT_STATE_OPTIONS),
@@ -788,7 +811,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
788
811
'Base-system incident states. Instances with a customized state model can use different coded values. Moving to On Hold also needs an On hold reason (Awaiting Caller, Awaiting Change, Awaiting Problem, or Awaiting Vendor), which you set through Additional Fields; Awaiting Caller additionally requires Additional Comments.',
789
812
},
790
813
{
791
-
id: 'state',
814
+
id: 'changeState',
792
815
title: 'Change State',
793
816
type: 'combobox',
794
817
options: optionalChoices(CHANGE_STATE_OPTIONS),
@@ -1027,7 +1050,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
1027
1050
mode: 'advanced',
1028
1051
},
1029
1052
{
1030
-
id: 'comments',
1053
+
id: 'incidentComments',
1031
1054
title: 'Additional Comments',
1032
1055
type: 'long-input',
1033
1056
placeholder: 'Customer-visible comment',
@@ -1038,7 +1061,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
1038
1061
mode: 'advanced',
1039
1062
},
1040
1063
{
1041
-
id: 'comments',
1064
+
id: 'approvalComments',
1042
1065
title: 'Approval Comments',
1043
1066
type: 'long-input',
1044
1067
placeholder: 'Reason for the decision',
@@ -1062,7 +1085,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
1062
1085
},
1063
1086
// Resolution and closure
1064
1087
{
1065
-
id: 'closeCode',
1088
+
id: 'resolutionCode',
1066
1089
title: 'Resolution Code',
1067
1090
type: 'short-input',
1068
1091
placeholder: 'A close_code choice configured on your instance',
@@ -1074,7 +1097,7 @@ Output: {"state": "2", "assigned_to": "john.doe", "work_notes": "Assigned and st
1074
1097
description: 'The incident close_code choice list is configured per instance.',
0 commit comments