public void configure()

in jira/src/main/java/org/apache/camel/example/jira/AddIssueRoute.java [44:64]


    public void configure() {

        LOG.info(" >>>>>>>>>>>>>>>>>>>>> jira example - add new issue");
        // change the fields accordingly to your target jira server
        from("timer://foo?fixedRate=true&period=50000")
                .setHeader(ISSUE_PROJECT_KEY, () -> project)
                .setHeader(ISSUE_TYPE_NAME, () -> issueType)
                .setHeader(ISSUE_SUMMARY, () -> "Example Demo Bug jira " + (new Date()))
                .setHeader(ISSUE_PRIORITY_NAME, () -> "Low")

                // uncomment to add a component
                // .setHeader(ISSUE_COMPONENTS, () -> {
                //     List<String> comps = new ArrayList<>();
                //     comps.add("plugins");
                //     return comps;
                // })
                .setBody(constant("A small description for a test issue. "))
                .log("  JIRA new issue: ${body}")
                .to("jira://addIssue")
                .log("Issue created: ${body.key}");
    }