View Issue Details

IDProjectCategoryView StatusLast Update
0020101mantisbtapi soappublic2018-09-04 01:23
Reporterkellyzhou Assigned Tocommunity  
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status closedResolutionfixed 
Target Version2.17.0Fixed in Version2.17.0 
Summary0020101: mc_filter_search_issues can't filter by date

Use mc_filter_search_issues filter settings to date, but the result is not in accordance with the setting display
How can we set filter by date?





2015-09-11 22:32

reporter   ~0051454

When using WSDL entity to implement mc_filter_search_issues, we set the date condition (2015/9/1~2015/9/10), but the result is not shown as we expect.
Is there any setting (e.g. filter_by_date= on) we should notice?





2015-09-18 10:44

reporter   ~0051503

What do you expect to receive? Those dates filter on the date_submitted field.



2015-09-18 19:31

reporter   ~0051505


I hope to get the data from 2015/09/01 to 2015/09/10.
(If I set up the condition for date, I want to specify a range.)
But the result I get doesn’t apply date filter.

To get the result with date filter, what else do I need to use/set up besides these parameters (Start_day,Start_month,Start_year,End_day,End_month,End_year)?

Thank you.



2016-04-15 01:43

manager   ~0052953

Last edited: 2016-04-15 01:50

View 2 revisions

@rombert Looks like for dates to take effect in a filter, the filter_by_date flag has to be set. However, our FilterSearchData doesn't expose this field.

There are two options to fix this:

  1. Add the field to the WSDL and pass it to the internal filtering code.
  2. Infer the code from the FilterSearchData containing date fields (i.e. start date or end date is set).

I would rather go with option 2.



2016-04-15 16:08

reporter   ~0052964

Option 2 sounds good to me as well



2018-08-17 03:28

developer   ~0060445


Related Changesets

MantisBT: master 6e178d8f

2018-08-17 02:41:00

Raimund Herbert

Committer: dregad Details Diff
Fix filter by date for the soap api

In the soap endpoint “mc_filter_search_issues”, it is possible to
filter the search result by date. At least it is defined in the wsdl.
But as described in the issue 0020101, this parameter has no
effect (yet).

Therefore handle the date parameters manually in the mc_filter_api,
so that it will be appended to the filter.

After this change it is possible to filter the search result by a
date range.

Fixes 0020101
Affected Issues
mod - api/soap/mc_filter_api.php Diff File

Issue History

Date Modified Username Field Change
2015-09-11 05:21 kellyzhou New Issue
2015-09-11 22:32 kellyzhou Note Added: 0051454
2015-09-18 10:44 rombert Assigned To => rombert
2015-09-18 10:44 rombert Status new => assigned
2015-09-18 10:44 rombert Note Added: 0051503
2015-09-18 10:44 rombert Assigned To rombert =>
2015-09-18 10:44 rombert Status assigned => feedback
2015-09-18 19:31 kellyzhou Note Added: 0051505
2015-09-18 19:31 kellyzhou Status feedback => new
2016-04-15 01:41 vboctor Tag Attached: mantishub
2016-04-15 01:43 vboctor Note Added: 0052953
2016-04-15 01:50 vboctor Note Edited: 0052953 View Revisions
2016-04-15 16:08 rombert Note Added: 0052964
2018-08-17 03:28 atrol Note Added: 0060445
2018-08-22 08:23 dregad Changeset attached => MantisBT master 6e178d8f
2018-08-22 08:23 dregad Assigned To => dregad
2018-08-22 08:23 dregad Status new => resolved
2018-08-22 08:23 dregad Resolution open => fixed
2018-08-22 08:23 dregad Fixed in Version => 2.17.0
2018-08-22 08:24 dregad Assigned To dregad => community
2018-08-22 08:24 dregad Target Version => 2.17.0
2018-08-23 02:22 dregad Summary mc_filter_search_issues can't filiter by date => mc_filter_search_issues can't filter by date
2018-09-04 01:23 vboctor Status resolved => closed