Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] Not able to filter jiraIssues using updatedDateFilter

The filter in your example below queries for issues created in a certain time period. To query for issues that were updated between startDate and endDate use: filter.setUpdatedDateFilter(new DateRangeFilter(startDate, endDate)).

Steffen


On 12/15/08, Tejaswini <teju.great@xxxxxxxxx> wrote:


Hi everybody,
   I am trying to get all the issues that were updated in the given time
period. Though there were issues that were updated in the specified range, I
dont get any Issues.

  The code is:


List<JiraIssue> issues = new ArrayList<JiraIssue>();
        jiraClient.getCache().refreshDetails(monitor);

                FilterDefinition filter = new FilterDefinition();
                filter.setCreatedDateFilter(new DateRangeFilter(new Date(2008,12,8),new
Date(2008,12,12)));
                Project project = jiraClient.getProjects(monitor)[0];
                filter.setProjectFilter(new ProjectFilter(project));
                SampleIssueCollector collector = new SampleIssueCollector(monitor, issues,
100);
                jiraClient.search(filter, collector, monitor);
                issues = collector.getIssues();

                for(JiraIssue issue : issues){
                        System.out.println(issue);
                        System.out.println(" project " + issue.getProject());
                        System.out.println("  " + issue.getDescription());
                }


Thanks in advance,
Tejaswini

--
View this message in context: http://www.nabble.com/Not-able-to-filter-jiraIssues-using-updatedDateFilter-tp21013397p21013397.html
Sent from the Mylyn Dev mailing list archive at Nabble.com.

_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-dev


Back to the top