Actions
Feature #27916
openAdd "%value_id%" option to "Link values to URL" for key/value list custom fields
Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
Problem Description: Key/value list allows a list of items for selection. These item allow the name of the item to be changed while retaining the id of the item. When filtering on such an item, the id is used (in contrast to a normal list where the name is used). However, when the 'Link values to URL' option is used, the %value%
expands to the name of the entry. This prevents use of the 'Link values to URL' as a pre-defined filter on the item.
Solution: Modify 'Link values to URL' to support a new value %value_id%
which expands to the id of the item.
For Custom key/value list "IT System":
- id=3 name="Mail server"
- id=4 name="Database server"
- value
https://server.org/?it_system=%value%
expands tohttps://server.org/?it_system=Mail server
(existing behavior) - value
https://server.org/?it_system=%value_id%
expands tohttps://server.org/?it_system=3
(new behavior)
- Decide on name: is "value_id" the best to use for this?
- Update code that generates links based on "Link values to URL" setting.
- Update Redmine documentation http://www.redmine.org/projects/redmine/wiki/RedmineCustomFields
Actions