in jira/src/main/java/org/apache/camel/example/jira/NewCommentsRoute.java [31:43]
public void configure() {
LOG.info(" >>>>>>>>>>>>>>>>>>>>> jira example - retrieve only new comments");
// change the fields accordinly to your target jira server
from("jira://newComments?jql=RAW(project={{example.jira.project-key}} AND resolution = Unresolved)&delay=4000")
.process(exchange -> {
Comment comment = (Comment) exchange.getIn().getBody();
LOG.info("new jira comment id: {} - by: {}: {}", comment.getId(), comment.getAuthor().getDisplayName(),
comment.getBody());
})
.to("mock:result");
}