|
From: Robert M. <rob...@gm...> - 2015-12-14 19:43:54
|
Hi Peter, ( I assumed you meant to send this to the list, not necessarily to the owner ) On Mon, Dec 14, 2015 at 6:55 PM, Peter Tschischik <pet...@ub...> wrote: > Hi! > Can you help me please about the "filters" Feature in MantisConnect? > > As i understood, with > > FilterData[] filters = mcpt.mc_filter_get(user, password, project_id); > > you retrieve an array with filters, specified to a project project_id. > Each filter has its name, its id and Options in getFilter_string. > > - How does the filter works? The filter is defined on the server side and managed by MantisBT. When you request issues matching a filter you will receive them. > > - How is this string constructed ? Its need to know to create a custom > filter. IIRC the string value is a serialized PHP array, so that's of no use to you in other programming languages. What are you trying to achieve? > > - Can different filter give back the same issues? Not sure what you mean here ... you could build two different filters which return the same issues, but that's nothing specific to the SOAP API. Imagine you have 5 issues, all with status = open and without an assignee. You can construct filter 1, looking for all open issue and filter 2, looking for all unassigned issues. They would both return the same results but are indeed different. > > - Why using an existing filter_id in mc_filter_get_issue_headers returns > empty array? It should not, unless they filter does not match any issues. Did you send the correct username/password? Do you get any issues returned in the web interface? Best, Robert > > Best regards and happy new year! > > Peter > > -- http://robert.muntea.nu/ |