Project

General

Profile

Actions

Feature #47

closed
RA

Feature #24: Implémenter un hook pour la création automatique de tickets Redmine depuis les scans Trivy et Semgrep

Infrastructure Redmine : recherche par clé (champ custom), création + anti-doublons/régression

Feature #47: Infrastructure Redmine : recherche par clé (champ custom), création + anti-doublons/régression

Added by Redmine Admin about 2 months ago. Updated about 2 months ago.

Status:
Shipped
Priority:
Normal
Assignee:
-
Start date:
06/11/2026
Due date:
% Done:

0%

Estimated time:
spec_ref:

conversation:21#24

build_status:
build_number:
ci_run_url:
scan_status:
scan_report_url:
deploy_status:
preprod_url:
deployed_at:
branch:
feat/47-redmine-security-adapter
pr_url:
https://github.com/omdev-tech/PipeLiner-Client/pull/27
security_key:
severity:
paused:

Description

Couche infrastructure de `api/` : adaptateur Redmine concret derrière le port défini par l'application, réutilisant `RedmineClient`, les value objects `RedmineStatus`/`RedmineField` et `create_ticket_from_draft`. Recherche d'un ticket existant par clé via un champ custom `security_key` (repli par recherche titre/clé documenté). État : ticket **ouvert** portant la clé → ne pas recréer (anti-doublon) ; seul un ticket **résolu/fermé** → recréer (régression). Création depuis le draft formaté : tag `Sécurité`, statut `Submitted`, `security_key` renseigné. TDD avec respx ; intégration optionnelle `RUN_REDMINE_LIVE`.

## Critères d'acceptation
- Recherche par clé via champ custom `security_key` (repli titre/clé documenté).
- Anti-doublon : aucun ticket si un ticket ouvert porte déjà la clé.
- Régression : nouveau ticket si seuls des tickets résolus/fermés portent la clé.
- Création conforme : tag `Sécurité`, statut `Submitted`, clé persistée.
- Tests respx verts (format + scénarios dédup/régression) ; chemin `RUN_REDMINE_LIVE` présent ; ruff + mypy passent.

Estimation : M. Dépend de : « Domaine & application … ».


Files

qa-47-preuve-technique.txt (4.49 KB) qa-47-preuve-technique.txt Redmine Admin, 06/11/2026 07:51 PM
Actions

Also available in: PDF Atom