django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

Enable automatic numbering for engagements using a customizable format (e.g., ENG-0001).

Open Fatte1254 opened this issue 1 month ago • 6 comments

:warning: Note on feature completeness :warning:

We are narrowing the scope of acceptable enhancements to DefectDojo. Learn more here: https://github.com/DefectDojo/django-DefectDojo/blob/master/readme-docs/CONTRIBUTING.md

Is your feature request related to a problem? Please describe A clear and concise description of what the problem is. Problem: Each new engagement currently displays no unique Engagement ID in the UI

Describe the solution you'd like Solution: Implement the ability to assign a customized engagement identifier (e.g., ENG-0001) that is automatically generated each time a new engagement is created. This ensures consistent and traceable engagement numbering for easier reference, reporting, and integration with other systems.

Fatte1254 avatar Nov 02 '25 06:11 Fatte1254

Thank you for submitting your enhancement request, this is something we would welcome a community PR for!

valentijnscholten avatar Nov 03 '25 16:11 valentijnscholten

Can I pick this up if nobody's working on this?

PoojasPatel013 avatar Dec 02 '25 12:12 PoojasPatel013

Yes thank you

valentijnscholten avatar Dec 02 '25 13:12 valentijnscholten

Update on Implementation

I have successfully implemented the backend logic for auto-generating IDs (ENG-XXXX)

Image

Pending Edge Case: It appears that when an engagement is deleted, it may still exist in the database (soft delete) or affect the calculation of the last() ID, causing the increment logic to behave unexpectedly. Still figuring out why it's happening, it will take time ig. I am adjusting the save() query to ensure it handles deleted objects properly. If you have any suggestions, let me know, thanks!!

PoojasPatel013 avatar Dec 09 '25 04:12 PoojasPatel013

Can you create a draft PR?

valentijnscholten avatar Dec 09 '25 12:12 valentijnscholten

hi @valentijnscholten opened #13862

PoojasPatel013 avatar Dec 09 '25 14:12 PoojasPatel013