func (c *FilterController) List(ctx *app.ListFilterContext) error {
	var arr []*app.Filters
	arr = append(arr, &app.Filters{
		Attributes: &app.FilterAttributes{
			Title:       "Assignee",
			Query:       "filter[assignee]={id}",
			Description: "Filter by assignee",
			Type:        "users",
		},
		Type: "filters",
	},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Area",
				Query:       "filter[area]={id}",
				Description: "Filter by area",
				Type:        "areas",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Iteration",
				Query:       "filter[iteration]={id}",
				Description: "Filter by iteration",
				Type:        "iterations",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Workitem type",
				Query:       "filter[workitemtype]={id}",
				Description: "Filter by workitemtype",
				Type:        "workitemtypes",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Workitem state",
				Query:       "filter[workitemstate]={id}",
				Description: "Filter by workitemstate",
				Type:        "workitemstate",
			},
			Type: "filters",
		},
	)
	result := &app.FilterList{
		Data: arr,
	}

	return ctx.OK(result)
}
// List runs the list action.
List runs the list action.
// List runs the list action .
func (c *FilterController) List(ctx *app.ListFilterContext) error {
	var arr []*app.Filters
	arr = append(arr, &app.Filters{
		Attributes: &app.FilterAttributes{
			Title:       "Assignee",
			Query:       "filter[assignee]={id}",
			Description: "Filter by assignee",
			Type:        "users",
		},
		Type: "filters",
	},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Area",
				Query:       "filter[area]={id}",
				Description: "Filter by area",
				Type:        "areas",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Iteration",
				Query:       "filter[iteration]={id}",
				Description: "Filter by iteration",
				Type:        "iterations",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Workitem type",
				Query:       "filter[workitemtype]={id}",
				Description: "Filter by workitemtype",
				Type:        "workitemtypes",
			},
			Type: "filters",
		},
		&app.Filters{
			Attributes: &app.FilterAttributes{
				Title:       "Workitem state",
				Query:       "filter[workitemstate]={id}",
				Description: "Filter by workitemstate",
				Type:        "workitemstate",
			},
			Type: "filters",
		},
	)
	result := &app.FilterList{
		Data: arr,
	}
	return ctx.OK(result)
}
func ( c * FilterController ) List ( ctx * app . ListFilterContext ) error { var arr [ ] * app . Filters arr = append ( arr , & app . Filters { Attributes : & app . FilterAttributes { Title : " " , Query : " " , Description : " " , Type : " " , } , Type : " " , } , & app . Filters { Attributes : & app . FilterAttributes { Title : " " , Query : " " , Description : " " , Type : " " , } , Type : " " , } , & app . Filters { Attributes : & app . FilterAttributes { Title : " " , Query : " " , Description : " " , Type : " " , } , Type : " " , } , & app . Filters { Attributes : & app . FilterAttributes { Title : " " , Query : " " , Description : " " , Type : " " , } , Type : " " , } , & app . Filters { Attributes : & app . FilterAttributes { Title : " " , Query : " " , Description : " " , Type : " " , } , Type : " " , } , ) result := & app . FilterList { Data : arr , } return ctx . OK ( result ) }
List runs the list action.
List runs the list action .