Skip to content

Instantly share code, notes, and snippets.

@jayunit100
Created June 19, 2014 14:44
Show Gist options
  • Save jayunit100/6b794f3470ded9a6df54 to your computer and use it in GitHub Desktop.
Save jayunit100/6b794f3470ded9a6df54 to your computer and use it in GitHub Desktop.
val issuesToProcess=searchResult.issues.withFilter(
(i:Issue)=>
if(i.getAttachments().size()>0) true else false)
val attachments = issuesToProcess.foreach(
(i:Issue)=>
i.getAttachments().foreach(
(a:Attachment)=>
if(a.getCreatedDate().getTime()>lastQueryTime)
evaluate(a);
else
System.out.println("skipping attachment " + a)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment