|
|
@ -43,7 +43,7 @@ class Queries::WorkPackages::Columns::PropertyColumn < Queries::WorkPackages::Co |
|
|
|
project: { |
|
|
|
project: { |
|
|
|
association: 'project', |
|
|
|
association: 'project', |
|
|
|
sortable: "name", |
|
|
|
sortable: "name", |
|
|
|
groupable: 'project_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.project_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
subject: { |
|
|
|
subject: { |
|
|
|
sortable: "#{WorkPackage.table_name}.subject" |
|
|
|
sortable: "#{WorkPackage.table_name}.subject" |
|
|
@ -51,7 +51,7 @@ class Queries::WorkPackages::Columns::PropertyColumn < Queries::WorkPackages::Co |
|
|
|
type: { |
|
|
|
type: { |
|
|
|
association: 'type', |
|
|
|
association: 'type', |
|
|
|
sortable: "position", |
|
|
|
sortable: "position", |
|
|
|
groupable: 'type_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.type_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
parent: { |
|
|
|
parent: { |
|
|
|
association: 'ancestors_relations', |
|
|
|
association: 'ancestors_relations', |
|
|
@ -62,35 +62,35 @@ class Queries::WorkPackages::Columns::PropertyColumn < Queries::WorkPackages::Co |
|
|
|
association: 'status', |
|
|
|
association: 'status', |
|
|
|
sortable: "position", |
|
|
|
sortable: "position", |
|
|
|
highlightable: true, |
|
|
|
highlightable: true, |
|
|
|
groupable: 'status_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.status_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
priority: { |
|
|
|
priority: { |
|
|
|
association: 'priority', |
|
|
|
association: 'priority', |
|
|
|
sortable: "position", |
|
|
|
sortable: "position", |
|
|
|
default_order: 'desc', |
|
|
|
default_order: 'desc', |
|
|
|
highlightable: true, |
|
|
|
highlightable: true, |
|
|
|
groupable: 'priority_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.priority_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
author: { |
|
|
|
author: { |
|
|
|
association: 'author', |
|
|
|
association: 'author', |
|
|
|
sortable: ["lastname", |
|
|
|
sortable: ["lastname", |
|
|
|
"firstname", |
|
|
|
"firstname", |
|
|
|
"id"], |
|
|
|
"id"], |
|
|
|
groupable: 'author_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.author_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
assigned_to: { |
|
|
|
assigned_to: { |
|
|
|
association: 'assigned_to', |
|
|
|
association: 'assigned_to', |
|
|
|
sortable: ["lastname", |
|
|
|
sortable: ["lastname", |
|
|
|
"firstname", |
|
|
|
"firstname", |
|
|
|
"id"], |
|
|
|
"id"], |
|
|
|
groupable: 'assigned_to_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.assigned_to_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
responsible: { |
|
|
|
responsible: { |
|
|
|
association: 'responsible', |
|
|
|
association: 'responsible', |
|
|
|
sortable: ["lastname", |
|
|
|
sortable: ["lastname", |
|
|
|
"firstname", |
|
|
|
"firstname", |
|
|
|
"id"], |
|
|
|
"id"], |
|
|
|
groupable: 'responsible_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.responsible_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
updated_at: { |
|
|
|
updated_at: { |
|
|
|
sortable: "#{WorkPackage.table_name}.updated_at", |
|
|
|
sortable: "#{WorkPackage.table_name}.updated_at", |
|
|
@ -99,13 +99,13 @@ class Queries::WorkPackages::Columns::PropertyColumn < Queries::WorkPackages::Co |
|
|
|
category: { |
|
|
|
category: { |
|
|
|
association: 'category', |
|
|
|
association: 'category', |
|
|
|
sortable: "name", |
|
|
|
sortable: "name", |
|
|
|
groupable: 'category_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.category_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
fixed_version: { |
|
|
|
fixed_version: { |
|
|
|
association: 'fixed_version', |
|
|
|
association: 'fixed_version', |
|
|
|
sortable: ["name"], |
|
|
|
sortable: ["name"], |
|
|
|
default_order: 'desc', |
|
|
|
default_order: 'desc', |
|
|
|
groupable: 'fixed_version_id' |
|
|
|
groupable: "#{WorkPackage.table_name}.fixed_version_id" |
|
|
|
}, |
|
|
|
}, |
|
|
|
start_date: { |
|
|
|
start_date: { |
|
|
|
# Put empty start_dates in the far future rather than in the far past |
|
|
|
# Put empty start_dates in the far future rather than in the far past |
|
|
|