Skip to main content

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

     
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.



Back to the top