uniqueness on custom field between bugs not closed

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
duwil
Posts: 46
Joined: 08 Jul 2008, 12:14

uniqueness on custom field between bugs not closed

Post by duwil »

I need to validate a custom field that must be unique between the open issues, I mean that when you cannot open a new issue if there is already another issue not closed that has the same value in that custom field. Is that possible?

---
jb_mantis
Posts: 63
Joined: 14 Oct 2008, 12:41
Location: Columbus, Ohio, USA

Re: uniqueness on custom field between bugs not closed

Post by jb_mantis »

This is not possible out of the box and would require custom code. You would need to find the function that is called when someone tries to submit a new bug and you would need to add a function call to it that will check the submitted custom field value and see if there are any unclosed issues that already have that same value, and if so, cause the submission to fail. Not sure where to point you to start as I don't do custom coding in Mantis.
-Joe
Mantis Version: 1.1.2
Disclaimer: Answers are based on the Mantis version above and may be inaccurate for newer/older versions which may have different configuration options and/or functionality.
Post Reply