feat: attach report photos to jira and start reports from private messages
Photos sent with /report are attached to the Jira issue by a queued job, and a plain private message or photo from an admin starts a pre-filled /report. AI analysis and silent group tickets are left out for now. Also carries the reply keyboard, SOLID/messenger drivers, task lookup and Bale driver commits that aren't in dev yet.
Not tested against live Telegram/Jira yet (unit tests only); merged on request without the demo.
Run after deploy:
-
php artisan migrate --force(newbale_userstable) - The poller command is renamed:
telegram:poll->bot:poll; update Supervisor/systemd/compose (it deletes a leftover webhook on start) - Add a supervised
php artisan queue:work --tries=1next tobot:poll(new process, exactly one; needed for report photos). Later deploys:php artisan queue:restart - Env:
QUEUE_CONNECTION=database,MESSENGER=telegram,BOT_BUTTONS=reply,TELEGRAM_WEBHOOK_ENABLED=false -
php artisan config:cache, then restart the poller and the worker
Edited by Ali YousefNezhad