Prefill variables based on conditions
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Proposal
When using Prefill variables in manual pipelines, all the available variables are shown on the Run a pipeline manually.
This issue proposes an enhancement to the manual pipeline UI where the list of variables displayed to the user is dynamically adjusted based on the value selected for a specific key variable.
For example, let us say there are three prefilled variables declared in the CI file:
- key: ENV | values: PROD, TEST
- key: DEPLOYMENT_SERVER | values: cluster1, cluster2
- key: TEST_SUITE | values: java, go
Current UI Behavior:
The manual pipeline UI displays all three variables (ENV, DEPLOYMENT_SERVER, TEST_SUITE) regardless of the value of ENV.
Proposed Feature:
Introduce conditional display logic for variables on the UI based on the selected value of ENV:
- When ENV is set to
PROD: OnlyDEPLOYMENT_SERVERshould be shown along with its options (cluster1, cluster2). - When ENV is set to
TEST: OnlyTEST_SUITEshould be shown along with its options (java, go).
This feature was requested by a customer in this ZD ticket: #545444(internal)