feat(ticket): add tags, owner, organization, attachments + bug fixes#1
Merged
Merged
Conversation
- ticket create: add --owner, --organization, --tags, --attachments
- ticket update: add --customer, --organization, --tags-add, --tags-remove
- ticket article add: add --attachments (base64 inline)
- new `tags` command group: list/add/remove on any object (default Ticket)
- ticket overview: warn when state hits per_page=100 cap (undercount risk)
- ticket search/list: visible aliases for --limit/--per-page consistency
- client: explicit User-Agent header (Cloudflare WAF 1010 bypass)
- client: raw response body in error output for easier debugging
- client: add DELETE method
- tags remove: use HTTP DELETE (was POST, Zammad returns 404 on POST)
- article response: parse + render attachments list (filename + size)
- create payload: priority/state as plain string (wrapping in {"name":...}
triggered ActiveSupport::HashWithIndifferentAccess cast error)
- tag operations: fire concurrently via try_join_all
- build_attachments: async + tokio::fs::read to avoid blocking the runtime
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ticket create/updateflag genişletme:--owner,--organization,--tags,--tags-add/-remove,--customer,--attachmentstagskomut grubu:list/add/remove(default object: Ticket)tags removeHTTP method POST → DELETE (Zammad 404 fix)ticket articlesartık attachment listesini parse edip gösteriyor (Article.attachments[]field eklendi)ticket createbody crash (HashWithIndifferentAccesscast hatası) —priority/stateartık{"name": ...}wrap değil, plain string--limit/--per-pagealias,overviewundercount uyarısıtry_join_allile paralel,build_attachmentsasync (tokio::fs::read)Test plan
ZAMMAD_URL+ZAMMAD_TOKENsetzammad-cli ticket create --title "Test" --body "Multi-line\nwith \"quotes\"" --tags "test,smoke"→ 201 + tag'ler eklenmişzammad-cli ticket update #N --tags-remove smoke→ 200, tag silinmiş (DELETE çalışıyor)zammad-cli ticket article add #N --body "see logs" --attachments /tmp/x.png→ article eklendi + ek dosya yüklendizammad-cli ticket articles #N→ attachment listesiAttachments:başlığı altında görünüyorzammad-cli tags list --id N/tags add --id N --name foo/tags remove --id N --name foo→ hepsi 200zammad-cli ticket overview→ 100+ state'ler+suffix ve stderr uyarısı🤖 Generated with Claude Code