View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020101 | mantisbt | api soap | public | 2015-09-11 05:21 | 2018-09-04 01:23 |
Reporter | kellyzhou | Assigned To | community | ||
Priority | normal | Severity | minor | Reproducibility | unable to reproduce |
Status | closed | Resolution | fixed | ||
Target Version | 2.17.0 | Fixed in Version | 2.17.0 | ||
Summary | 0020101: mc_filter_search_issues can't filter by date | ||||
Description | Use mc_filter_search_issues filter settings to date, but the result is not in accordance with the setting display | ||||
Tags | mantishub | ||||
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. filterSearchData.setStart_day(BigInteger.valueOf(1)); filterSearchData.setEnd_day(BigInteger.valueOf(10)); |
|
What do you expect to receive? Those dates filter on the date_submitted field. |
|
Hello, I hope to get the data from 2015/09/01 to 2015/09/10. 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. |
|
@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:
I would rather go with option 2. |
|
Option 2 sounds good to me as well |
|
MantisBT: master 6e178d8f 2018-08-16 22:41 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 0020101 |
|
mod - api/soap/mc_filter_api.php | Diff File |