add multi-valued options
Reported by Greg Schueler | February 28th, 2011 @ 02:34 PM | in Rundeck 1.2
Add options that can support multiple selections. The new option definitions should include a way to define the delimiter character, and when multiple values are selected in the GUI.
e.g.:
<option name="test" multivalued="true" delimiter="+" values="a,b,c"/>
The user could select multiple values in the GUI, then the job is executed with these args:
-test a+b+c
Comments and changes to this ticket
-
Deleted User February 28th, 2011 @ 03:30 PM
I would like to suggest that the delimiter be defaulted to a blank space. Definitely having the ability to override is going to very helpful. Would a newline be supported as well '\n'?
-
Greg Schueler February 28th, 2011 @ 03:41 PM
i wonder if there should be any default delimiter. if multivalued=true and no delimiter is specified perhaps it should be an error case.
newlines probably not supported...
-
Deleted User February 28th, 2011 @ 04:29 PM
Error case is so draconian. Make it a space, that way you can do stuff like for x in ${options.value}; do without thinking.
-
Deleted User March 2nd, 2011 @ 01:47 PM
(from [0efa33f95d1f78205ebd499cc9da88f96cba4ceb]) Initial multivalued options [#220] https://github.com/dtolabs/rundeck/commit/0efa33f95d1f78205ebd499cc...
-
Greg Schueler March 3rd, 2011 @ 11:28 AM
- State changed from new to resolved
delimiter has been made a required input item if multivalued=true.
-
Deleted User March 15th, 2011 @ 04:53 PM
- Milestone order changed from 30 to 0
(from [8db6fb27fa5b55a3c25b56e66aa852b4d8fcb827]) Update multivalue options [#220]
Edit delimiter form descriptive text.
improve display of multi-value options form.
https://github.com/dtolabs/rundeck/commit/8db6fb27fa5b55a3c25b56e66... -
Williams Daniel May 5th, 2023 @ 09:10 PM
When the user selects multiple values from the GUI, getting over it the values are separated by a "+". Then the work will be done with the following arguments: test=a+b+c.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues
People watching this ticket
Attachments
Referenced by
- 220 add multi-valued options (from [0efa33f95d1f78205ebd499cc9da88f96cba4ceb]) Initial...
- 220 add multi-valued options (from [8db6fb27fa5b55a3c25b56e66aa852b4d8fcb827]) Update ...