Commit graph

2 commits

Author SHA1 Message Date
a34a40cb12 Add IntOrFalse type to handle polymorphic API responses
Kanboard API returns int (ID) on success and false (bool) on failure
for create operations. Add IntOrFalse type that handles both cases
and update CreateTask, CreateComment, CreateTag, CreateTaskFile, and
CreateTaskLink to use it.
2026-01-15 20:23:53 +01:00
88b92aa028 Implement Tag API methods (CRITICAL)
Add direct client methods for tag operations:

Must-have methods:
- GetTaskTags(ctx, taskID) - returns map[tagID]tagName
- SetTaskTags(ctx, projectID, taskID, tags) - replaces all tags

Nice-to-have methods:
- GetAllTags(ctx) - list all tags in system
- GetTagsByProject(ctx, projectID) - list project tags
- CreateTag(ctx, projectID, name, colorID) - create new tag
- UpdateTag(ctx, tagID, name, colorID) - update existing tag
- RemoveTag(ctx, tagID) - delete tag

Note: setTaskTags REPLACES all tags. Individual add/remove
requires read-modify-write pattern (to be implemented in TaskScope).

Closes: kanboard-api-16r
2026-01-15 18:20:23 +01:00