Profile to test the feature "Dynamic items list" in trackers, with a Products tracker, and a Services tracker showing the available products at the moment. Thanks to joonhyun for creating the show.t.o instance for
https://dev.tiki.org/item4896, where this profile was created from.
Products Tracker
YAML
preferences:
feature_trackers: y
trackerfield_autoincrement: y
trackerfield_itemlink: y
trackerfield_itemslist: y
trackerfield_dynamiclist: y
wikiplugin_tracker: y
wikiplugin_trackerfilter: y
instructions: Profile_Dynamic_items_list_demo_services_page
objects:
-
type: tracker
ref: products
data:
name: Products
description:
restrict_end: 0
restrict_start: 0
sort_default_order: desc
sort_default_field: modification
-
type: tracker_field
ref: products_name
data:
name: Name
permname: name
tracker: $Dynamic_items_list_demo:products
options:
options:
- Oracle Database
- IBM DB2
- Oracle WebLogic Server
- Microsoft IIS
- PostgreSQL
type: dropdown
order: 10
flags:
- list
- searchable
- link
- public
- mandatory
-
type: tracker_field
ref: products_version
data:
name: Version
permname: version
tracker: $Dynamic_items_list_demo:products
options:
samerow: 1
type: text_field
order: 20
flags:
- list
- searchable
- public
Objects in Products Tracker
YAML
objects:
-
type: tracker_item
ref: product_001
data:
tracker: $Dynamic_items_list_demo:products
status: open
values:
- [ $Dynamic_items_list_demo:products_name, Oracle Database ]
- [ $Dynamic_items_list_demo:products_version, 10.2.0.5 ]
-
type: tracker_item
ref: product_002
data:
tracker: $Dynamic_items_list_demo:products
status: open
values:
- [ $Dynamic_items_list_demo:products_name, IBM DB2 ]
- [ $Dynamic_items_list_demo:products_version, 7.3 ]
-
type: tracker_item
ref: product_003
data:
tracker: $Dynamic_items_list_demo:products
status: open
values:
- [ $Dynamic_items_list_demo:products_name, Oracle Database ]
- [ $Dynamic_items_list_demo:products_version, 9.2.0.8 ]
-
type: tracker_item
ref: product_004
data:
tracker: $Dynamic_items_list_demo:products
status: open
values:
- [ $Dynamic_items_list_demo:products_name, PostgreSQL ]
- [ $Dynamic_items_list_demo:products_version, 9.3.1 ]
-
type: tracker_item
ref: product_005
data:
tracker: $Dynamic_items_list_demo:products
status: open
values:
- [ $Dynamic_items_list_demo:products_name, Oracle WebLogic Server ]
- [ $Dynamic_items_list_demo:products_version, 10.3.5 ]
Service Tracker
YAML
objects:
-
type: tracker
ref: service
data:
name: Service
description:
restrict_end: 0
restrict_start: 0
sort_default_order: desc
sort_default_field: modification
-
type: tracker_field
ref: service_productName
data:
name: Product Name
permname: productName
tracker: $Dynamic_items_list_demo:service
options:
trackerId: $Dynamic_items_list_demo:products
fieldId: $Dynamic_items_list_demo:products_name
linkToItem: 0
status: opc
preSelectFieldMethod: exact
displayOneItem: one
type: item_link
order: 10
flags:
- list
- searchable
- public
- mandatory
-
type: tracker_field
ref: service_productVersion
data:
name: Product Version
permname: productVersion
tracker: $Dynamic_items_list_demo:service
options:
trackerId: $Dynamic_items_list_demo:products
filterFieldIdThere: $Dynamic_items_list_demo:products_name
filterFieldIdHere: $Dynamic_items_list_demo:service_productName
listFieldIdThere: $Dynamic_items_list_demo:products_version
statusThere: opc
type: item_list_dynamic
order: 20
flags:
- list
- searchable
- public
-
type: tracker_field
ref: service_serviceName
data:
name: Service Name
permname: serviceName
tracker: $Dynamic_items_list_demo:service
options:
samerow: 1
type: text_field
order: 0
flags:
- list
- link
- searchable
- public
- mandatory
Objects in Service Tracker
YAML
objects:
-
type: tracker_item
ref: service_001
data:
tracker: $Dynamic_items_list_demo:service
status: open
values:
- [ $Dynamic_items_list_demo:service_productName, $profileobject:product_003$ ]
- [ $Dynamic_items_list_demo:service_productVersion, 10.2.0.5 ]
- [ $Dynamic_items_list_demo:service_serviceName, ERP ]
-
type: tracker_item
ref: service_002
data:
tracker: $Dynamic_items_list_demo:service
status: open
values:
- [ $Dynamic_items_list_demo:service_productName, $profileobject:product_004$ ]
- [ $Dynamic_items_list_demo:service_productVersion, 9.3.1 ]
- [ $Dynamic_items_list_demo:service_serviceName, DRDB ]
This will include:
Profile_Dynamic_items_list_demo_services_page
YAML
preferences:
enable: [ feature_wiki ]
instructions: Services
objects:
-
type: wiki_page
ref: services_page
data:
name: Services
description: Show and add services with the available products at the time
lang: en
content: wikicontent:Profile_Dynamic_items_list_demo_services_page
Alias names for this page:
Dynamic item list |
Dynamic items list |
Dynamic_item_list |
Dynamic_items_lists |
Dynamic item list demo |
Dynamic items list demo |
Dynamic_items_list |
Dynamic_items_lists_demo