Skip to content

Commit a768739

Browse files
committed
[OG-3]: Refactor update case to use dynamic data for status options (#1276)
### TL;DR Enhanced update case action: * Use variable selection for the case uuid field (can still paste via mouse click) * Use dropdown for case status ### How to test? - [ ] Case UUID field allows only a single variable selection - [ ] Case status field now shows as a dropdown with dynamically loaded options - [ ] Confirm that the dropdown displays the options correctly without showing option values - [ ] Case is updated correctly
1 parent ff49dc1 commit a768739

File tree

1 file changed

+9
-2
lines changed
  • packages/backend/src/apps/gathersg/actions/update-case

1 file changed

+9
-2
lines changed

packages/backend/src/apps/gathersg/actions/update-case/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,22 @@ const action: IRawAction = {
2323
description: 'Enter the case uuid you want to update',
2424
required: true,
2525
variables: true,
26+
singleVariableSelection: true,
2627
},
2728
// TODO: see if it is possible to get all possible statuses from the API
2829
{
2930
label: 'Case status',
3031
key: 'caseStatus',
31-
type: 'string' as const,
32+
type: 'dropdown' as const,
3233
description: 'Enter the status you want to update the case to.',
3334
required: false,
34-
variables: true,
35+
variables: false,
36+
showOptionValue: false,
37+
source: {
38+
type: 'query' as const,
39+
name: 'getDynamicData' as const,
40+
arguments: [{ name: 'key', value: 'getCaseStatuses' }],
41+
},
3542
},
3643
{
3744
label: 'Case fields',

0 commit comments

Comments
 (0)