work_packages

package
v0.0.0-...-bbef582 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InputValidationExpression = map[FilterOption]string{
	Status: "^(open)$|^(closed)$|^(!?[0-9,]+)$",
	Type:   "^(!?[0-9,]+)$",
}

Functions

func Activities

func Activities(id uint64) (activites []*models.Activity, err error)

func All

func All(filterOptions *map[FilterOption]string, query requests.Query, showOnlyTotal bool) (*models.WorkPackageCollection, error)

func AssigneeFilter

func AssigneeFilter(name string) requests.Filter

func AvailableTypes

func AvailableTypes(id uint64) ([]*models.Type, error)

func Create

func Create(projectId uint64, options map[CreateOption]string) (*models.WorkPackage, error)

func Lookup

func Lookup(id uint64) (*models.WorkPackage, error)

func StatusFilter

func StatusFilter(status string) requests.Filter

func TypeFilter

func TypeFilter(workPackageType string) requests.Filter

func Update

func Update(id uint64, options map[UpdateOption]string) (*models.WorkPackage, error)

Types

type CreateOption

type CreateOption int
const (
	CreateSubject CreateOption = iota
	CreateType
)

type FilterOption

type FilterOption int
const (
	Assignee FilterOption = iota
	Project
	Status
	Type
	IncludeSubProjects
)

func (FilterOption) String

func (f FilterOption) String() string

type UpdateOption

type UpdateOption int
const (
	UpdateCustomAction UpdateOption = iota
	UpdateAssignee
	UpdateAttachment
	UpdateSubject
	UpdateType
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL