Files
kandev/apps/backend/config/prompts/jira-issue-watch-default.md
T
João Salavisa a59909ca5a fix(jira): use shared prompt template with placeholder autocomplete (#801)
* fix(jira): use shared prompt template with placeholder autocomplete

Default prompt for the JIRA watcher now lives in
config/prompts/jira-issue-watch-default.md (loaded via promptcfg.Get),
matching how the GitHub issue/PR-review watchers source their defaults.
The watch dialog swaps the plain Textarea for the ScriptEditor used by
the GitHub dialog so users get {{...}} autocomplete, and the inline
hardcoded default string is gone from both backend and frontend.

* fix(jira): treat whitespace-only stored prompt as empty on hydrate

CodeRabbit caught that w.prompt || DEFAULT keeps a stored "   " value,
which canSave then rejects — dialog reopens in an unsavable state. Fall
back to the default whenever the trimmed value is empty.

---------

Co-authored-by: Kandev Agent <agent@kandev.dev>
2026-05-03 20:48:10 +01:00

740 B

You have been assigned a JIRA ticket to work on.

Ticket: {{issue.url}} Key: {{issue.key}} Summary: {{issue.summary}} Type: {{issue.type}} Status: {{issue.status}} Priority: {{issue.priority}} Assignee: {{issue.assignee}} Reporter: {{issue.reporter}} Project: {{issue.project}}

Description

{{issue.description}}

Instructions

  1. Read the ticket carefully and understand the requirements.
  2. Explore the codebase to understand the relevant code and architecture.
  3. Implement the changes described in the ticket.
  4. Write or update tests to cover the changes.
  5. Run the test suite to ensure nothing is broken.
  6. Commit your changes with a descriptive commit message referencing the ticket key.