Files
open-project/commands/op-comment.md
T

18 lines
622 B
Markdown
Raw Normal View History

2026-06-27 17:25:55 -05:00
---
description: Add a comment to a work package, e.g. /op-comment 1234 looks good to me.
allowed-tools: Bash(python3 *op.py*), Bash(python *op.py*), Bash(ls *)
---
Add a comment to an OpenProject work package. Input: `$ARGUMENTS`
The first token is the work package id; the rest is the comment text. Use the
openproject skill:
```bash
OP="${CLAUDE_PLUGIN_ROOT}/skills/openproject/scripts/op.py"
[ -f "$OP" ] || OP=$(ls "$PWD"/skills/openproject/scripts/op.py 2>/dev/null | head -1)
ID=$(echo "$ARGUMENTS" | awk '{print $1}')
TEXT=$(echo "$ARGUMENTS" | cut -d' ' -f2-)
python3 "$OP" wp comment "$ID" --text "$TEXT"
```