On Wed, May 18, 2011 at 11:44 AM, Dirk Haun <firstname.lastname@example.org>
I'm trying to extract information about certain issues from Mantis via
the SOAP API. There's a few things that I'm unable to find:
For mc_project_get_issues, what's the maximum number of pages? Or, to
put it another way, how do I iterate through all the issues? The
method seems to barf for "per_page" values of 100 or more. And
increasing the page number one by one, it eventually throws an
exception but doesn't return the remaining issues (so if I request 50
issues per page and there are only 40 left, I get an exception but not
those 40 issues).
[Victor] The number of issues you can pull is dependent on how much member is consumed by the PHP web service implementation and whether this hits the limit set in the hosting environment for MantisBT. I would be on the same side and stick with 50. You shouldn't get an error if there are less than 50 items, if there is then it is a bug. Please confirm and provide your MantisBT version.
Or maybe that's a problem with the PHP binding I'm using ...
Another question: I'm trying to find out who uploaded an attachment.
That information doesn't seem to be available anywhere. Or am I
[Victor] I don't believe we track this right now, it is not in the database. I believe we should add it, if it wasn't added recently and I missed it.
Is there any more detailed documentation or code samples on the SOAP
API? The /api/soap/mantisconnect.php page is a nice start but doesn't
go into any details.
[Victor] There is no great documentation story there, but there is some samples in the MantisConnect client libraries, and some samples in the unit tests for the soap api that is part of the MantisBT download.