app/models/query/group_by.rb
# Returns the work package count by group or nil if query is not grouped
Returns the work package count by group or nil if query is not grouped
Returns the work package count by group or nil if query is not grouped
def transform_group_keys(groups)
    column = query.group_by_column
    if column.is_a?(Queries::WorkPackages::Columns::CustomFieldColumn) && column.custom_field.list?
      transform_list_group_by_keys(column.custom_field, groups)
    elsif column.is_a?(Queries::WorkPackages::Columns::CustomFieldColumn)
      transform_custom_field_keys(column.custom_field, groups)
    else
      groups
    end
  end
def transform_group_keys ( groups ) column = query . group_by_column if column . is_a? ( Queries :: WorkPackages :: Columns :: CustomFieldColumn ) && column . custom_field . list? transform_list_group_by_keys ( column . custom_field , groups ) elsif column . is_a? ( Queries :: WorkPackages :: Columns :: CustomFieldColumn ) transform_custom_field_keys ( column . custom_field , groups ) else groups end end
Returns the work package count by group or nil if query is not grouped
Returns the work package count by group or nil if query is not grouped
groups