Versions in this module Expand all Collapse all v1 v1.28.0-dev Jun 29, 2026 v1.27.0 Jul 13, 2026 Changes in this version + const GhostProjectID + var ColumnColorPattern = regexp.MustCompile("^#[0-9a-fA-F]{6}$") + func ChangeProjectStatus(ctx context.Context, p *Project, isClosed bool) error + func ChangeProjectStatusByRepoIDAndID(ctx context.Context, repoID, projectID int64, isClosed bool) error + func DeleteAllProjectIssueByIssueIDsAndProjectIDs(ctx context.Context, issueIDs, projectIDs []int64) error + func DeleteColumnByID(ctx context.Context, columnID int64) error + func DeleteProjectByID(ctx context.Context, id int64) error + func DeleteProjectByRepoID(ctx context.Context, repoID int64) error + func GetAllProjectsIDsByOwnerIDAndType(ctx context.Context, ownerID int64, projectType Type) ([]int64, error) + func GetColumnIssueNextSorting(ctx context.Context, projectID, columnID int64) (int64, error) + func GetProjectsMapByIDs(ctx context.Context, ids []int64) (map[int64]*Project, error) + func GetSearchOrderByBySortType(sortType string) db.SearchOrderBy + func IsCardTypeValid(p CardType) bool + func IsErrProjectColumnNotExist(err error) bool + func IsErrProjectNotExist(err error) bool + func IsTemplateTypeValid(p TemplateType) bool + func IsTypeValid(p Type) bool + func MoveColumnsOnProject(ctx context.Context, project *Project, sortedColumnIDs map[int64]int64) error + func NewColumn(ctx context.Context, column *Column) error + func NewProject(ctx context.Context, p *Project) error + func ProjectLinkForOrg(org *user_model.User, projectID int64) string + func ProjectLinkForRepo(repo *repo_model.Repository, projectID int64) string + func SetDefaultColumn(ctx context.Context, projectID, columnID int64) error + func UpdateColumn(ctx context.Context, column *Column) error + func UpdateProject(ctx context.Context, p *Project) error + type CardConfig struct + CardType CardType + Translation string + func GetCardConfig() []CardConfig + type CardType uint8 + const CardTypeImagesAndText + const CardTypeTextOnly + type Column struct + Color string + CreatedUnix timeutil.TimeStamp + CreatorID int64 + Default bool + ID int64 + NumIssues int64 + ProjectID int64 + Sorting int8 + Title string + UpdatedUnix timeutil.TimeStamp + func GetColumn(ctx context.Context, columnID int64) (*Column, error) + func GetColumnByIDAndProjectID(ctx context.Context, columnID, projectID int64) (*Column, error) + func (Column) TableName() string + func (c *Column) GetIssues(ctx context.Context) ([]*ProjectIssue, error) + type ColumnList []*Column + func GetColumnsByIDs(ctx context.Context, projectID int64, columnsIDs []int64) (ColumnList, error) + type ErrProjectColumnNotExist struct + ColumnID int64 + func (err ErrProjectColumnNotExist) Error() string + func (err ErrProjectColumnNotExist) Unwrap() error + type ErrProjectNotExist struct + ID int64 + RepoID int64 + func (err ErrProjectNotExist) Error() string + func (err ErrProjectNotExist) Unwrap() error + type Project struct + CardType CardType + ClosedDateUnix timeutil.TimeStamp + CreatedUnix timeutil.TimeStamp + CreatorID int64 + Description string + ID int64 + IsClosed bool + NumClosedIssues int64 + NumIssues int64 + NumOpenIssues int64 + Owner *user_model.User + OwnerID int64 + RenderedContent template.HTML + Repo *repo_model.Repository + RepoID int64 + TemplateType TemplateType + Title string + Type Type + UpdatedUnix timeutil.TimeStamp + func GetProjectByID(ctx context.Context, id int64) (*Project, error) + func GetProjectByIDAndOwner(ctx context.Context, id, ownerID int64) (*Project, error) + func GetProjectForRepoByID(ctx context.Context, repoID, id int64) (*Project, error) + func (p *Project) CanBeAccessedByOwnerRepo(ownerID int64, repo *repo_model.Repository) bool + func (p *Project) GetColumns(ctx context.Context) (ColumnList, error) + func (p *Project) IconName() string + func (p *Project) IsGhost() bool + func (p *Project) IsOrganizationProject() bool + func (p *Project) IsRepositoryProject() bool + func (p *Project) Link(ctx context.Context) string + func (p *Project) LoadOwner(ctx context.Context) (err error) + func (p *Project) LoadRepo(ctx context.Context) (err error) + func (p *Project) MustDefaultColumn(ctx context.Context) (*Column, error) + type ProjectIssue struct + ID int64 + IssueID int64 + ProjectColumnID int64 + ProjectID int64 + Sorting int64 + type SearchOptions struct + IsClosed optional.Option[bool] + OrderBy db.SearchOrderBy + OwnerID int64 + RepoID int64 + Title string + Type Type + func (opts SearchOptions) ToConds() builder.Cond + func (opts SearchOptions) ToOrders() string + type TemplateConfig struct + TemplateType TemplateType + Translation string + func GetTemplateConfigs() []TemplateConfig + type TemplateType uint8 + const TemplateTypeBasicKanban + const TemplateTypeBugTriage + const TemplateTypeNone + type Type uint8 + const TypeIndividual + const TypeOrganization + const TypeRepository v1.27.0-rc0 Jun 29, 2026