<< Back to previous view

[QB-3491] Please make choices prompt work the same as repeat parameters in which you can have repeat parameters with a comma in a parameter value that is not treated as a new parameter
Created: 05/Feb/20  Updated: 18/Mar/20

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 3.0.3, 3.0.4, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.0.9, 3.0.10, 3.0.11, 3.0.12, 3.1.0-beta1, 3.0.13, 3.0.14, 3.0.15, 3.0.16, 3.0.17, 3.0.18, 3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.1.13, 3.1.14, 3.1.15, 3.1.16, 3.1.17, 3.1.18, 3.1.19, 3.1.20, 3.1.21, 3.1.22, 3.1.23, 3.1.24, 3.1.25, 3.1.26, 3.1.27, 3.1.28, 3.1.29, 3.1.30, 3.1.31, 3.1.32, 3.1.33, 3.1.34, 3.1.35, 3.1.36, 3.1.37, 3.1.38, 3.1.39, 3.1.40, 3.1.41, 3.1.42, 3.1.43, 3.1.44, 3.1.45, 3.1.46, 3.1.47, 3.1.48, 3.1.49, 3.1.50, 4.0.0-M1, 3.1.51, 3.1.52, 3.1.53, 3.1.54, 3.1.55, 3.1.56, 3.1.57, 4.0.0-M2, 3.1.58, 3.1.59, 4.0.0-M3, 3.1.60, 3.1.61, 4.0.0, 3.1.62, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 3.1.63, 4.0.5, 4.0.6, 3.1.64, 4.0.7, 4.0.8, 4.0.9, 4.0.10, 4.0.11, 4.0.12, 4.0.13, 3.1.65, 4.0.14, 4.0.15, 4.0.16, 3.1.66, 4.0.17, 4.0.18, 3.1.67, 4.0.19, 4.0.20, 4.0.21, 4.0.22, 4.0.23, 3.1.68, 4.0.24, 3.1.69, 4.0.25, 4.0.26, 3.1.70, 4.0.27, 4.0.28, 4.0.29, 4.0.30, 4.0.31, 4.0.32, 4.0.33, 4.0.34, 4.0.35, 4.0.36, 4.0.37, 4.0.38, 4.0.39, 4.0.40, 4.0.41, 4.0.42, 4.0.43, 4.0.44, 4.0.45, 4.0.46, 4.0.47, 3.1.71, 4.0.48, 4.0.49, 4.0.50, 4.0.51, 4.0.52, 4.0.53, 4.0.54, 4.0.55, 4.0.56, 4.0.57, 3.1.72, 4.0.58, 4.0.59, 4.0.60, 4.0.61, 4.0.62, 3.1.73, 4.0.63, 4.0.64, 4.0.65, 4.0.66, 4.0.67, 4.0.68, 4.0.69, 4.0.70, 4.0.71, 4.0.72, 4.0.73, 4.0.74, 4.0.75, 4.0.76, 4.0.77, 4.0.78, 4.0.80, 4.0.81, 4.0.82, 4.0.83, 4.0.84, 4.0.85, 4.0.86, 4.0.87, 4.0.88, 4.0.89, 5.0.3, 4.0.90, 5.0.4, 5.0.5, 5.0.6, 5.0.7, 5.0.8, 5.0.9, 5.0.10, 5.0.11, 5.0.12, 5.0.13, 5.0.14, 5.0.15, 5.0.16, 5.0.17, 5.0.18, 5.0.19, 5.0.20, 5.0.21, 5.0.22, 5.0.23, 5.0.24, 5.0.25, 5.0.26, 5.0.27, 5.0.28, 5.0.29, 5.0.30, 5.0.31, 5.0.32, 5.0.33, 4.0.91, 4.0.92, 5.0.34, 5.0.35, 5.0.36, 5.0.37, 5.0.38, base, 5.1.0-rc1, 5.1.0-rc2, 5.1.0-rc3, 5.0.39, 5.0.40, 5.0.41, 5.1.0-rc4, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.1.4, 5.1.5, 5.1.6, 5.1.7, 5.1.8, 5.0.42, 5.1.9, 5.1.10, 5.1.11, 5.1.12, 5.1.14, 5.1.15, 5.1.16, 5.1.17, 5.1.18, 5.1.19, 5.1.20, 5.1.21, 5.1.22, 5.1.23, 5.1.24, 5.1.25, 5.1.26, 5.1.27, 5.1.28, 5.1.29, 5.1.30, 5.1.31, 5.1.32, 5.1.33, 5.1.34, 5.1.35, 5.1.36, 5.1.37, 5.1.38, 5.1.39, 5.1.40, 6.0.0, 5.1.41, 6.0.1, 6.0.2, 6.0.3, 5.1.42, 6.0.4, 5.1.43, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.14, 6.0.15, 6.0.16, 6.0.17, 6.0.18, 6.0.19, 6.0.20, 6.0.21, 6.0.22, 6.0.23, 6.0.24, 6.0.25, 6.0.26, 6.0.27, 6.0.28, 6.0.29, 6.0.30, 6.0.31, 6.0.32, 6.0.33, 6.0.34, 6.0.35, 6.0.36, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.1.5, 6.1.6, 6.1.7, 6.1.8, 6.1.9, 6.1.10, 6.1.11, 6.1.12, 6.1.13, 6.1.14, 6.1.15, 6.1.16, 6.1.17, 6.1.18, 6.1.19, 6.1.20, 6.1.21, 6.1.22, 6.1.23, 6.1.24, 6.1.25, 6.1.26, 6.1.27, 6.1.28, 6.1.29, 6.1.30, 6.1.31, 6.1.32, 6.1.33, 6.1.34, 6.1.35, 6.1.36, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.0.6, 7.0.7, 7.0.8, 7.0.9, 7.0.10, 7.0.11, 7.0.12, 7.0.13, 7.0.14, 7.0.15, 7.0.16, 7.0.17, 7.0.18, 7.0.19, 7.0.20, 7.0.21, 7.0.22, 7.0.23, 7.0.24, 7.0.25, 7.0.26, 7.0.27, 7.0.28, 7.0.29, 7.0.30, 7.0.31, 8.0.0, 8.0.1, 8.0.2, 8.0.3, 8.0.4, 8.0.5, 8.0.7, 8.0.8, 8.0.9, 8.0.10, 8.0.11, 8.0.12, 8.0.13, 8.0.14, 8.0.15, 7.0.32, 8.0.16, 8.0.17, 8.0.20, 8.0.21, 8.0.22, 8.0.23, 8.0.24, 8.0.25, 8.0.26, 8.0.27, 8.0.28, 8.0.29, 8.0.30, 8.0.31, 8.0.32, 8.0.33, 8.0.34, 8.0.35, 8.0.36, 8.0.37, 8.0.38, 9.0.0, 9.0.1, 9.0.2, 9.0.3, 9.0.4, 9.0.5, 9.0.6, 9.0.7, 8.0.39, 9.0.8, 9.0.9, 9.0.10, 9.0.11, 9.0.12, 9.0.13, 9.0.14, 9.0.15, 9.0.16, 9.0.17, 9.0.18, 9.0.20, 9.0.21, 9.0.22, 9.0.23, 8.0.40, 9.0.24, 9.0.26, 9.0.27, 9.0.28, 9.0.29, 9.0.30, 9.0.31, 9.0.32, 9.0.33, 9.0.34, 9.0.35
Fix Version/s: 10.0.0

Type: Improvement Priority: Minor
Reporter: Scott Chapman Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
Currently the choices is a comma separated string (for variable prompt or Promotion variable prompt). The problem arises when you wish to have a comma in the string value for the user to select. For instance, if you are displaying names and want to display as well as sort by Last Name, First Name; QuickBuild will treat the comma between the last name and first name as an actual comma and therefore the drop down options will present each on a separate line. Even if you use the work around found in QB-2743 which presented the similar issue for repeat parameters. The expectation is that choices would operate similarly in which if you provided

groovy:
return ["a,b", "c,d"]

Then the drop down list would display as

a,b
c,d

Instead of presenting as
a
b
c
d

 Comments   
Comment by Robin Shen [ 09/Mar/20 12:49 PM ]
With QB10 (to be released in the end of this month), this will be possible by writing the option as:

${"a,b\nc,d"}

That is, QB will not split with comma if line breaks are found in the string
Generated at Thu Oct 31 23:39:56 UTC 2024 using JIRA 189.