Files
open-project/commands/op-comment.md
T
2026-06-27 17:25:55 -05:00

622 B

description, allowed-tools
description allowed-tools
Add a comment to a work package, e.g. /op-comment 1234 looks good to me. 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:

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"