API to test if an issue exists

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
James McMurray
Posts: 2
Joined: 25 Jan 2015, 04:38

API to test if an issue exists

Post by James McMurray »

I've just started using mantis (v1.2.18) on a personal project and have set my php error and exception handlers to create issues when something melts down. I'm hoping there is an API that searches the current issues based on the summary so I can see if an issue already exists before creating it. My error creation code uses the SOAP API but if there's another way I'm open to that as well. Mantis and my site will be on the same server.

Followup question: If there is one, would it be possible to add a comment to the existing issue or perhaps update some sort of counter so I can quickly tell how often the error is occuring?

For the curious: I learned that duplicate issues is a problem when my error logging code threw an error. I got 42 emails before the recursion was detected and the server shut the script down. :D 8O
James McMurray
Posts: 2
Joined: 25 Jan 2015, 04:38

Re: API to test if an issue exists

Post by James McMurray »

I finally found the SOAP API and got my answer.

http://www.mantisbt.org/bugs/api/soap/m ... .idp582720
Post Reply