From: Robert M. <rob...@gm...> - 2012-02-15 12:19:42
|
On Wed, Feb 15, 2012 at 2:10 PM, Manilal K M <ma...@ej...> wrote: > > > ----- Original Message ----- >> From: "Robert Munteanu" <rob...@gm...> >> To: ma...@ej..., "developer discussions" <man...@li...> >> Sent: Wednesday, February 15, 2012 5:27:41 PM >> Subject: Re: [mantisbt-dev] Retrieving issues based on reporter through SOAP >> >> On Wed, Feb 15, 2012 at 1:44 PM, Manilal K M <ma...@ej...> >> wrote: >> > Hello all, >> > >> > We have a custom application developed on Zend Framework which is >> > integrated with MantisBT through SOAP API. Each user in the custom >> > application is also an user in Mantis and the user should be able >> > to retrieve all the issues reported by him. >> > >> > Currently I'm using mc_project_get_issues which fetch the latest >> > 100 issues and then filter it based on the reporter_name. The >> > problem with this approach is that older issues will not be >> > displayed in the list. We have over 300 issues for this project in >> > mantis. >> > >> > Is there any SOAP-API which can retrieve all the issues for a >> > selected project by reporter? Is it possible to add custom SOAP >> > functions without tampering the current API? >> > >> > Please let me know your suggestions. >> > >> > regards >> > Manilal >> >> Hi Manilal, >> >> For the time being, you can use the page_number and per_page >> parameters for mc_project_get_issues . So you can call >> >> mc_project_get_issues(user, pass, project_id, 1, 100 ); >> mc_project_get_issues(user, pass, project_id, 2, 100 ); >> mc_project_get_issues(user, pass, project_id, 3, 100 ); >> >> etc, until you go through all the issues. >> >> As for adding custom functions, that's not yet possible . However, >> there is a very much work-in-progress effort for adding custom search >> to the SOAP API >> https://github.com/rombert/mantisbt/tree/soap-custom-filters , if the >> above solution is not right for you. If you're interested in >> contributing to that, let me know. > > Hello Robert, > > Thank you very much for your quick reply. I'm really interested in contributing to the custom filters even though I'm struggling to find enough time for it. Please let me know how I can help you with this. > > regards > Manilal Have a look at https://github.com/rombert/mantisbt/blob/soap-custom-filters/api/soap/mc_filter_api.php#L143 , where the mc_filter_search_issue_headers function is starting to be implemented. Right now it works for just a few properties ( https://github.com/rombert/mantisbt/blob/soap-custom-filters/api/soap/mc_filter_api.php#L9 ) , even though the WSDL should include all the fields ( https://github.com/rombert/mantisbt/blob/soap-custom-filters/api/soap/mantisconnect.php#L502 ). If you want to help, checkout the project from my github page ( use the soap-custom-filters branch ) and try a few searches, see how they work. If you find bugs, let me know. If you see some things which are not implemented and you can fix them , please do :-) Robert > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > mantisbt-dev mailing list > man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev -- Sent from my (old) computer |