From 9a748375608025a3278e39fbd640f0baec3bdc0c Mon Sep 17 00:00:00 2001 From: Andrea Cosentino Date: Fri, 22 May 2026 11:50:18 +0200 Subject: [PATCH] CAMEL-23576: camel-jira - align Exchange header constant names with Camel naming convention Backport of #23417 onto camel-4.14.x. Renames the Exchange header string values in JiraConstants from non-Camel prefixed values (IssueKey, ProjectKey, IssueTransitionId, linkType, minutesSpent, ...) to CamelJira. The Java field names are unchanged so routes referencing the constants symbolically continue to work; routes using the literal string values must be updated (documented in the 4.14 upgrade guide as a potential breaking change). The generated Endpoint DSL header accessors on JiraHeaderNameBuilder are renamed accordingly. Producer error messages and the component docs are updated for consistency. Reported by Claude Code on behalf of Andrea Cosentino Signed-off-by: Andrea Cosentino --- .../apache/camel/catalog/components/jira.json | 38 +++--- .../org/apache/camel/component/jira/jira.json | 38 +++--- .../src/main/docs/jira-component.adoc | 50 ++++---- .../camel/component/jira/JiraConstants.java | 40 +++--- .../jira/producer/AddCommentProducer.java | 2 +- .../jira/producer/AttachFileProducer.java | 2 +- .../jira/producer/DeleteIssueProducer.java | 2 +- .../producer/TransitionIssueProducer.java | 4 +- .../jira/producer/UpdateIssueProducer.java | 2 +- .../jira/producer/WatcherProducer.java | 2 +- .../pages/camel-4x-upgrade-guide-4_14.adoc | 60 +++++++++ .../dsl/JiraEndpointBuilderFactory.java | 114 +++++++++--------- 12 files changed, 207 insertions(+), 147 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jira.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jira.json index f57564ea44203..47710eb383493 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jira.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/jira.json @@ -40,25 +40,25 @@ "verificationCode": { "index": 13, "kind": "property", "displayName": "Verification Code", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.jira.JiraConfiguration", "configurationField": "configuration", "description": "(OAuth only) The verification code from Jira generated in the first step of the authorization proccess." } }, "headers": { - "IssueAssigneeId": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE_ID" }, - "IssueAssignee": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE" }, - "IssueComponents": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of the issue's components", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_COMPONENTS" }, - "IssueChanged": { "index": 3, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The name of the updated field (i.e Status)", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_CHANGED" }, - "IssueKey": { "index": 4, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_KEY" }, - "IssuePriorityId": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_ID" }, - "IssuePriorityName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_NAME" }, - "ProjectKey": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The project's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PROJECT_KEY" }, - "IssueSummary": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The summary of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_SUMMARY" }, - "IssueTransitionId": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transition id", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TRANSITION_ID" }, - "IssueTypeId": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_ID" }, - "IssueTypeName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_NAME" }, - "IssueWatchedIssues": { "index": 12, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The list of all issue keys that are watched in the time of update", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHED_ISSUES" }, - "IssueWatchersAdd": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of watchers to add to the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_ADD" }, - "IssueWatchersRemove": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The watchers of the issue to remove", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_REMOVE" }, - "ParentIssueKey": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the parent issue", "constantName": "org.apache.camel.component.jira.JiraConstants#PARENT_ISSUE_KEY" }, - "ChildIssueKey": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the child issue", "constantName": "org.apache.camel.component.jira.JiraConstants#CHILD_ISSUE_KEY" }, - "linkType": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type of link", "constantName": "org.apache.camel.component.jira.JiraConstants#LINK_TYPE" }, - "minutesSpent": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "-1", "description": "The minutes spent", "constantName": "org.apache.camel.component.jira.JiraConstants#MINUTES_SPENT" } + "CamelJiraIssueAssigneeId": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE_ID" }, + "CamelJiraIssueAssignee": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE" }, + "CamelJiraIssueComponents": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of the issue's components", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_COMPONENTS" }, + "CamelJiraIssueChanged": { "index": 3, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The name of the updated field (i.e Status)", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_CHANGED" }, + "CamelJiraIssueKey": { "index": 4, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_KEY" }, + "CamelJiraIssuePriorityId": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_ID" }, + "CamelJiraIssuePriorityName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_NAME" }, + "CamelJiraIssueProjectKey": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The project's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PROJECT_KEY" }, + "CamelJiraIssueSummary": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The summary of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_SUMMARY" }, + "CamelJiraIssueTransitionId": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transition id", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TRANSITION_ID" }, + "CamelJiraIssueTypeId": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_ID" }, + "CamelJiraIssueTypeName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_NAME" }, + "CamelJiraIssueWatchedIssues": { "index": 12, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The list of all issue keys that are watched in the time of update", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHED_ISSUES" }, + "CamelJiraIssueWatchersAdd": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of watchers to add to the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_ADD" }, + "CamelJiraIssueWatchersRemove": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The watchers of the issue to remove", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_REMOVE" }, + "CamelJiraParentIssueKey": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the parent issue", "constantName": "org.apache.camel.component.jira.JiraConstants#PARENT_ISSUE_KEY" }, + "CamelJiraChildIssueKey": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the child issue", "constantName": "org.apache.camel.component.jira.JiraConstants#CHILD_ISSUE_KEY" }, + "CamelJiraLinkType": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type of link", "constantName": "org.apache.camel.component.jira.JiraConstants#LINK_TYPE" }, + "CamelJiraMinutesSpent": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "-1", "description": "The minutes spent", "constantName": "org.apache.camel.component.jira.JiraConstants#MINUTES_SPENT" } }, "properties": { "type": { "index": 0, "kind": "path", "displayName": "Type", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.jira.JiraType", "enum": [ "ADDCOMMENT", "ADDISSUE", "ATTACH", "DELETEISSUE", "NEWISSUES", "NEWCOMMENTS", "WATCHUPDATES", "UPDATEISSUE", "TRANSITIONISSUE", "WATCHERS", "ADDISSUELINK", "ADDWORKLOG", "FETCHISSUE", "FETCHCOMMENTS" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Operation to perform. Consumers: NewIssues, NewComments. Producers: AddIssue, AttachFile, DeleteIssue, TransitionIssue, UpdateIssue, Watchers. See this class javadoc description for more information." }, diff --git a/components/camel-jira/src/generated/resources/META-INF/org/apache/camel/component/jira/jira.json b/components/camel-jira/src/generated/resources/META-INF/org/apache/camel/component/jira/jira.json index f57564ea44203..47710eb383493 100644 --- a/components/camel-jira/src/generated/resources/META-INF/org/apache/camel/component/jira/jira.json +++ b/components/camel-jira/src/generated/resources/META-INF/org/apache/camel/component/jira/jira.json @@ -40,25 +40,25 @@ "verificationCode": { "index": 13, "kind": "property", "displayName": "Verification Code", "group": "security", "label": "security", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "configurationClass": "org.apache.camel.component.jira.JiraConfiguration", "configurationField": "configuration", "description": "(OAuth only) The verification code from Jira generated in the first step of the authorization proccess." } }, "headers": { - "IssueAssigneeId": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE_ID" }, - "IssueAssignee": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE" }, - "IssueComponents": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of the issue's components", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_COMPONENTS" }, - "IssueChanged": { "index": 3, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The name of the updated field (i.e Status)", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_CHANGED" }, - "IssueKey": { "index": 4, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_KEY" }, - "IssuePriorityId": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_ID" }, - "IssuePriorityName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_NAME" }, - "ProjectKey": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The project's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PROJECT_KEY" }, - "IssueSummary": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The summary of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_SUMMARY" }, - "IssueTransitionId": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transition id", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TRANSITION_ID" }, - "IssueTypeId": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_ID" }, - "IssueTypeName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_NAME" }, - "IssueWatchedIssues": { "index": 12, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The list of all issue keys that are watched in the time of update", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHED_ISSUES" }, - "IssueWatchersAdd": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of watchers to add to the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_ADD" }, - "IssueWatchersRemove": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The watchers of the issue to remove", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_REMOVE" }, - "ParentIssueKey": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the parent issue", "constantName": "org.apache.camel.component.jira.JiraConstants#PARENT_ISSUE_KEY" }, - "ChildIssueKey": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the child issue", "constantName": "org.apache.camel.component.jira.JiraConstants#CHILD_ISSUE_KEY" }, - "linkType": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type of link", "constantName": "org.apache.camel.component.jira.JiraConstants#LINK_TYPE" }, - "minutesSpent": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "-1", "description": "The minutes spent", "constantName": "org.apache.camel.component.jira.JiraConstants#MINUTES_SPENT" } + "CamelJiraIssueAssigneeId": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE_ID" }, + "CamelJiraIssueAssignee": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The assignee's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_ASSIGNEE" }, + "CamelJiraIssueComponents": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of the issue's components", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_COMPONENTS" }, + "CamelJiraIssueChanged": { "index": 3, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The name of the updated field (i.e Status)", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_CHANGED" }, + "CamelJiraIssueKey": { "index": 4, "kind": "header", "displayName": "", "group": "common", "label": "", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_KEY" }, + "CamelJiraIssuePriorityId": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_ID" }, + "CamelJiraIssuePriorityName": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The priority's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PRIORITY_NAME" }, + "CamelJiraIssueProjectKey": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The project's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_PROJECT_KEY" }, + "CamelJiraIssueSummary": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The summary of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_SUMMARY" }, + "CamelJiraIssueTransitionId": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Integer", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The transition id", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TRANSITION_ID" }, + "CamelJiraIssueTypeId": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "Long", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's id of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_ID" }, + "CamelJiraIssueTypeName": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type's name of the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_TYPE_NAME" }, + "CamelJiraIssueWatchedIssues": { "index": 12, "kind": "header", "displayName": "", "group": "consumer", "label": "consumer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The list of all issue keys that are watched in the time of update", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHED_ISSUES" }, + "CamelJiraIssueWatchersAdd": { "index": 13, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The comma separated list of watchers to add to the issue", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_ADD" }, + "CamelJiraIssueWatchersRemove": { "index": 14, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The watchers of the issue to remove", "constantName": "org.apache.camel.component.jira.JiraConstants#ISSUE_WATCHERS_REMOVE" }, + "CamelJiraParentIssueKey": { "index": 15, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the parent issue", "constantName": "org.apache.camel.component.jira.JiraConstants#PARENT_ISSUE_KEY" }, + "CamelJiraChildIssueKey": { "index": 16, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The id of the child issue", "constantName": "org.apache.camel.component.jira.JiraConstants#CHILD_ISSUE_KEY" }, + "CamelJiraLinkType": { "index": 17, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "The type of link", "constantName": "org.apache.camel.component.jira.JiraConstants#LINK_TYPE" }, + "CamelJiraMinutesSpent": { "index": 18, "kind": "header", "displayName": "", "group": "producer", "label": "producer", "required": false, "javaType": "int", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "defaultValue": "-1", "description": "The minutes spent", "constantName": "org.apache.camel.component.jira.JiraConstants#MINUTES_SPENT" } }, "properties": { "type": { "index": 0, "kind": "path", "displayName": "Type", "group": "common", "label": "", "required": true, "type": "enum", "javaType": "org.apache.camel.component.jira.JiraType", "enum": [ "ADDCOMMENT", "ADDISSUE", "ATTACH", "DELETEISSUE", "NEWISSUES", "NEWCOMMENTS", "WATCHUPDATES", "UPDATEISSUE", "TRANSITIONISSUE", "WATCHERS", "ADDISSUELINK", "ADDWORKLOG", "FETCHISSUE", "FETCHCOMMENTS" ], "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Operation to perform. Consumers: NewIssues, NewComments. Producers: AddIssue, AttachFile, DeleteIssue, TransitionIssue, UpdateIssue, Watchers. See this class javadoc description for more information." }, diff --git a/components/camel-jira/src/main/docs/jira-component.adoc b/components/camel-jira/src/main/docs/jira-component.adoc index 716869b620e0f..973608463a61e 100644 --- a/components/camel-jira/src/main/docs/jira-component.adoc +++ b/components/camel-jira/src/main/docs/jira-component.adoc @@ -176,24 +176,24 @@ There are operations that requires `id` for fields such as the issue type, prior Required: -* `ProjectKey`: The project key, example: CAMEL, HHH, MYP. -* `IssueTypeId` or `IssueTypeName`: The `id` of the issue type or the name of the issue type, you can see the valid list in `\http://jira_server/rest/api/2/issue/createmeta?projectKeys=SAMPLE_KEY`. -* `IssueSummary`: The summary of the issue. +* `CamelJiraIssueProjectKey`: The project key, example: CAMEL, HHH, MYP. +* `CamelJiraIssueTypeId` or `CamelJiraIssueTypeName`: The `id` of the issue type or the name of the issue type, you can see the valid list in `\http://jira_server/rest/api/2/issue/createmeta?projectKeys=SAMPLE_KEY`. +* `CamelJiraIssueSummary`: The summary of the issue. Optional: -* `IssueAssignee`: the assignee user -* `IssueAssigneeId`: the assignee user id -* `IssuePriorityId` or `IssuePriorityName`: The priority of the issue, you can see the valid list in `\http://jira_server/rest/api/2/priority`. -* `IssueComponents`: A list of string with the valid component names. -* `IssueWatchersAdd`: A list of strings with the usernames (or id) to add to the watcher list. -* `IssueDescription`: The description of the issue. +* `CamelJiraIssueAssignee`: the assignee user +* `CamelJiraIssueAssigneeId`: the assignee user id +* `CamelJiraIssuePriorityId` or `CamelJiraIssuePriorityName`: The priority of the issue, you can see the valid list in `\http://jira_server/rest/api/2/priority`. +* `CamelJiraIssueComponents`: A list of string with the valid component names. +* `CamelJiraIssueWatchersAdd`: A list of strings with the usernames (or id) to add to the watcher list. +* The exchange body is used as the issue description. === AddComment Required: -* `IssueKey`: The issue key identifier. +* `CamelJiraIssueKey`: The issue key identifier. * the body of the exchange is the description. === Attach @@ -202,39 +202,39 @@ Only one file should attach per invocation. Required: -* `IssueKey`: The issue key identifier. +* `CamelJiraIssueKey`: The issue key identifier. * body of the exchange should be of type `File` === DeleteIssue Required: -* `IssueKey`: The issue key identifier. +* `CamelJiraIssueKey`: The issue key identifier. === TransitionIssue Required: -* `IssueKey`: The issue key identifier. -* `IssueTransitionId`: The issue transition `id`. +* `CamelJiraIssueKey`: The issue key identifier. +* `CamelJiraIssueTransitionId`: The issue transition `id`. * the body of the exchange is the description. === UpdateIssue -* `IssueKey`: The issue key identifier. -* `IssueTypeId` or `IssueTypeName`: The `id` of the issue type or the name of the issue type, you can see the valid list in `\http://jira_server/rest/api/2/issue/createmeta?projectKeys=SAMPLE_KEY`. -* `IssueSummary`: The summary of the issue. -* `IssueAssignee`: the assignee user -* `IssueAssigneeId`: the assignee user id -* `IssuePriorityId` or `IssuePriorityName`: The priority of the issue, you can see the valid list in `\http://jira_server/rest/api/2/priority`. -* `IssueComponents`: A list of string with the valid component names. -* `IssueDescription`: The description of the issue. +* `CamelJiraIssueKey`: The issue key identifier. +* `CamelJiraIssueTypeId` or `CamelJiraIssueTypeName`: The `id` of the issue type or the name of the issue type, you can see the valid list in `\http://jira_server/rest/api/2/issue/createmeta?projectKeys=SAMPLE_KEY`. +* `CamelJiraIssueSummary`: The summary of the issue. +* `CamelJiraIssueAssignee`: the assignee user +* `CamelJiraIssueAssigneeId`: the assignee user id +* `CamelJiraIssuePriorityId` or `CamelJiraIssuePriorityName`: The priority of the issue, you can see the valid list in `\http://jira_server/rest/api/2/priority`. +* `CamelJiraIssueComponents`: A list of string with the valid component names. +* The exchange body is used as the issue description. === Watcher -* `IssueKey`: The issue key identifier. -* `IssueWatchersAdd`: A list of strings with the usernames (or id) to add to the watcher list. -* `IssueWatchersRemove`: A list of strings with the usernames to remove from the watcher list. +* `CamelJiraIssueKey`: The issue key identifier. +* `CamelJiraIssueWatchersAdd`: A list of strings with the usernames (or id) to add to the watcher list. +* `CamelJiraIssueWatchersRemove`: A list of strings with the usernames to remove from the watcher list. === WatchUpdates (consumer) diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConstants.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConstants.java index bf45041aadee5..ba797cfd89406 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConstants.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/JiraConstants.java @@ -27,44 +27,44 @@ public interface JiraConstants { String PRIVATE_KEY = "privateKey"; String CONSUMER_KEY = "consumerKey"; @Metadata(label = "producer", description = "The assignee's id of the issue", javaType = "String") - String ISSUE_ASSIGNEE_ID = "IssueAssigneeId"; + String ISSUE_ASSIGNEE_ID = "CamelJiraIssueAssigneeId"; @Metadata(label = "producer", description = "The assignee's name of the issue", javaType = "String") - String ISSUE_ASSIGNEE = "IssueAssignee"; + String ISSUE_ASSIGNEE = "CamelJiraIssueAssignee"; @Metadata(label = "producer", description = "The comma separated list of the issue's components", javaType = "String") - String ISSUE_COMPONENTS = "IssueComponents"; - String ISSUE_COMMENT = "IssueComment"; + String ISSUE_COMPONENTS = "CamelJiraIssueComponents"; + String ISSUE_COMMENT = "CamelJiraIssueComment"; @Metadata(label = "consumer", description = "The name of the updated field (i.e Status)", javaType = "String") - String ISSUE_CHANGED = "IssueChanged"; + String ISSUE_CHANGED = "CamelJiraIssueChanged"; @Metadata(description = "The id of the issue", javaType = "String") - String ISSUE_KEY = "IssueKey"; + String ISSUE_KEY = "CamelJiraIssueKey"; @Metadata(label = "producer", description = "The priority's id of the issue", javaType = "Long") - String ISSUE_PRIORITY_ID = "IssuePriorityId"; + String ISSUE_PRIORITY_ID = "CamelJiraIssuePriorityId"; @Metadata(label = "producer", description = "The priority's name of the issue", javaType = "String") - String ISSUE_PRIORITY_NAME = "IssuePriorityName"; + String ISSUE_PRIORITY_NAME = "CamelJiraIssuePriorityName"; @Metadata(label = "producer", description = "The project's id of the issue", javaType = "String") - String ISSUE_PROJECT_KEY = "ProjectKey"; + String ISSUE_PROJECT_KEY = "CamelJiraIssueProjectKey"; @Metadata(label = "producer", description = "The summary of the issue", javaType = "String") - String ISSUE_SUMMARY = "IssueSummary"; + String ISSUE_SUMMARY = "CamelJiraIssueSummary"; @Metadata(label = "producer", description = "The transition id", javaType = "Integer") - String ISSUE_TRANSITION_ID = "IssueTransitionId"; + String ISSUE_TRANSITION_ID = "CamelJiraIssueTransitionId"; @Metadata(label = "producer", description = "The type's id of the issue", javaType = "Long") - String ISSUE_TYPE_ID = "IssueTypeId"; + String ISSUE_TYPE_ID = "CamelJiraIssueTypeId"; @Metadata(label = "producer", description = "The type's name of the issue", javaType = "String") - String ISSUE_TYPE_NAME = "IssueTypeName"; + String ISSUE_TYPE_NAME = "CamelJiraIssueTypeName"; @Metadata(label = "consumer", description = "The list of all issue keys that are watched in the time of update", javaType = "String") - String ISSUE_WATCHED_ISSUES = "IssueWatchedIssues"; + String ISSUE_WATCHED_ISSUES = "CamelJiraIssueWatchedIssues"; @Metadata(label = "producer", description = "The comma separated list of watchers to add to the issue", javaType = "String") - String ISSUE_WATCHERS_ADD = "IssueWatchersAdd"; + String ISSUE_WATCHERS_ADD = "CamelJiraIssueWatchersAdd"; @Metadata(label = "producer", description = "The watchers of the issue to remove", javaType = "String") - String ISSUE_WATCHERS_REMOVE = "IssueWatchersRemove"; + String ISSUE_WATCHERS_REMOVE = "CamelJiraIssueWatchersRemove"; String JIRA_REST_CLIENT_FACTORY = "JiraRestClientFactory"; @Metadata(label = "producer", description = "The id of the parent issue", javaType = "String") - String PARENT_ISSUE_KEY = "ParentIssueKey"; + String PARENT_ISSUE_KEY = "CamelJiraParentIssueKey"; @Metadata(label = "producer", description = "The id of the child issue", javaType = "String") - String CHILD_ISSUE_KEY = "ChildIssueKey"; + String CHILD_ISSUE_KEY = "CamelJiraChildIssueKey"; @Metadata(label = "producer", description = "The type of link", javaType = "String") - String LINK_TYPE = "linkType"; + String LINK_TYPE = "CamelJiraLinkType"; @Metadata(label = "producer", description = "The minutes spent", javaType = "int", defaultValue = "-1") - String MINUTES_SPENT = "minutesSpent"; + String MINUTES_SPENT = "CamelJiraMinutesSpent"; } diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AddCommentProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AddCommentProducer.java index 9f3b238d54549..a1fe4080fb9f3 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AddCommentProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AddCommentProducer.java @@ -41,7 +41,7 @@ public void process(Exchange exchange) { String commentStr = exchange.getIn().getBody(String.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key to add the comment to."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key to add the comment to."); } if (commentStr == null) { throw new IllegalArgumentException("Missing exchange body, it should specify the string comment."); diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java index e04bda02d5e2b..95491e169d29d 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/AttachFileProducer.java @@ -41,7 +41,7 @@ public void process(Exchange exchange) throws InvalidPayloadException { String issueKey = exchange.getIn().getHeader(ISSUE_KEY, String.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key to attach a file."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key to attach a file."); } // check for java.io.File first before using input stream for file content diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/DeleteIssueProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/DeleteIssueProducer.java index 887bd835ec06d..a0892a06d7e21 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/DeleteIssueProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/DeleteIssueProducer.java @@ -35,7 +35,7 @@ public void process(Exchange exchange) { String issueKey = exchange.getIn().getHeader(ISSUE_KEY, String.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key to remove it."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key to remove it."); } JiraRestClient client = ((JiraEndpoint) getEndpoint()).getClient(); IssueRestClient issueClient = client.getIssueClient(); diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/TransitionIssueProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/TransitionIssueProducer.java index 10afffeb7dcd2..91a0d77af164c 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/TransitionIssueProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/TransitionIssueProducer.java @@ -44,11 +44,11 @@ public void process(Exchange exchange) { Integer transitionId = exchange.getIn().getHeader(ISSUE_TRANSITION_ID, Integer.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key to add the comment to."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key to add the comment to."); } if (transitionId == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueTransitionId', it should specify the transition id."); + "Missing exchange input header named 'CamelJiraIssueTransitionId', it should specify the transition id."); } JiraRestClient client = ((JiraEndpoint) getEndpoint()).getClient(); IssueRestClient issueClient = client.getIssueClient(); diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/UpdateIssueProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/UpdateIssueProducer.java index 087d9da59a361..04286ead8e7f8 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/UpdateIssueProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/UpdateIssueProducer.java @@ -54,7 +54,7 @@ public void process(Exchange exchange) { String issueKey = exchange.getIn().getHeader(ISSUE_KEY, String.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key."); } Long issueTypeId = exchange.getIn().getHeader(ISSUE_TYPE_ID, Long.class); String issueTypeName = exchange.getIn().getHeader(ISSUE_TYPE_NAME, String.class); diff --git a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/WatcherProducer.java b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/WatcherProducer.java index 7175ab4bc5471..f9b869270ad98 100644 --- a/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/WatcherProducer.java +++ b/components/camel-jira/src/main/java/org/apache/camel/component/jira/producer/WatcherProducer.java @@ -41,7 +41,7 @@ public void process(Exchange exchange) { String watchersRemove = exchange.getIn().getHeader(ISSUE_WATCHERS_REMOVE, String.class); if (issueKey == null) { throw new IllegalArgumentException( - "Missing exchange input header named 'IssueKey', it should specify the issue key to add/remove watchers to."); + "Missing exchange input header named 'CamelJiraIssueKey', it should specify the issue key to add/remove watchers to."); } JiraRestClient client = ((JiraEndpoint) getEndpoint()).getClient(); boolean hasWatchersToAdd = ObjectHelper.isNotEmpty(watchersAdd); diff --git a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_14.adoc b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_14.adoc index a91447cd981e9..14616f54e62e1 100644 --- a/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_14.adoc +++ b/docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_14.adoc @@ -121,6 +121,66 @@ Even with the opt-in, route authors should still strip the namespace with In addition, the inbound `MailHeaderFilterStrategy` now blocks the `mail.smtp.` / `mail.smtps.` prefix as well, so an external mail message can no longer inject these into a downstream exchange. +=== camel-jira - potential breaking change + +The Exchange header constants in `JiraConstants` have been renamed to follow the +Camel naming convention used across the rest of the component catalog. The Java +field names are unchanged; only the header string values have changed: + +[options="header"] +|=== +| Constant | Previous value | New value +| `JiraConstants.ISSUE_ASSIGNEE_ID` | `IssueAssigneeId` | `CamelJiraIssueAssigneeId` +| `JiraConstants.ISSUE_ASSIGNEE` | `IssueAssignee` | `CamelJiraIssueAssignee` +| `JiraConstants.ISSUE_COMPONENTS` | `IssueComponents` | `CamelJiraIssueComponents` +| `JiraConstants.ISSUE_COMMENT` | `IssueComment` | `CamelJiraIssueComment` +| `JiraConstants.ISSUE_CHANGED` | `IssueChanged` | `CamelJiraIssueChanged` +| `JiraConstants.ISSUE_KEY` | `IssueKey` | `CamelJiraIssueKey` +| `JiraConstants.ISSUE_PRIORITY_ID` | `IssuePriorityId` | `CamelJiraIssuePriorityId` +| `JiraConstants.ISSUE_PRIORITY_NAME` | `IssuePriorityName` | `CamelJiraIssuePriorityName` +| `JiraConstants.ISSUE_PROJECT_KEY` | `ProjectKey` | `CamelJiraIssueProjectKey` +| `JiraConstants.ISSUE_SUMMARY` | `IssueSummary` | `CamelJiraIssueSummary` +| `JiraConstants.ISSUE_TRANSITION_ID` | `IssueTransitionId` | `CamelJiraIssueTransitionId` +| `JiraConstants.ISSUE_TYPE_ID` | `IssueTypeId` | `CamelJiraIssueTypeId` +| `JiraConstants.ISSUE_TYPE_NAME` | `IssueTypeName` | `CamelJiraIssueTypeName` +| `JiraConstants.ISSUE_WATCHED_ISSUES` | `IssueWatchedIssues` | `CamelJiraIssueWatchedIssues` +| `JiraConstants.ISSUE_WATCHERS_ADD` | `IssueWatchersAdd` | `CamelJiraIssueWatchersAdd` +| `JiraConstants.ISSUE_WATCHERS_REMOVE` | `IssueWatchersRemove` | `CamelJiraIssueWatchersRemove` +| `JiraConstants.PARENT_ISSUE_KEY` | `ParentIssueKey` | `CamelJiraParentIssueKey` +| `JiraConstants.CHILD_ISSUE_KEY` | `ChildIssueKey` | `CamelJiraChildIssueKey` +| `JiraConstants.LINK_TYPE` | `linkType` | `CamelJiraLinkType` +| `JiraConstants.MINUTES_SPENT` | `minutesSpent` | `CamelJiraMinutesSpent` +|=== + +Routes that reference the constants symbolically (for example +`setHeader(JiraConstants.ISSUE_KEY, ...)`) continue to work without changes. +Routes that set the header by its literal string value (for example +`setHeader("IssueKey", ...)`) must be updated to use the new value +(`setHeader("CamelJiraIssueKey", ...)`). + +As a consequence, the generated Endpoint DSL header accessors on +`JiraHeaderNameBuilder` have been renamed accordingly: + +* `issueAssigneeId()` -> `jiraIssueAssigneeId()` +* `issueAssignee()` -> `jiraIssueAssignee()` +* `issueComponents()` -> `jiraIssueComponents()` +* `issueChanged()` -> `jiraIssueChanged()` +* `issueKey()` -> `jiraIssueKey()` +* `issuePriorityId()` -> `jiraIssuePriorityId()` +* `issuePriorityName()` -> `jiraIssuePriorityName()` +* `projectKey()` -> `jiraIssueProjectKey()` +* `issueSummary()` -> `jiraIssueSummary()` +* `issueTransitionId()` -> `jiraIssueTransitionId()` +* `issueTypeId()` -> `jiraIssueTypeId()` +* `issueTypeName()` -> `jiraIssueTypeName()` +* `issueWatchedIssues()` -> `jiraIssueWatchedIssues()` +* `issueWatchersAdd()` -> `jiraIssueWatchersAdd()` +* `issueWatchersRemove()` -> `jiraIssueWatchersRemove()` +* `parentIssueKey()` -> `jiraParentIssueKey()` +* `childIssueKey()` -> `jiraChildIssueKey()` +* `linkType()` -> `jiraLinkType()` +* `minutesSpent()` -> `jiraMinutesSpent()` + == Upgrading from 4.14.5 to 4.14.6 === camel-platform-http-main diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JiraEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JiraEndpointBuilderFactory.java index d421a04f33b78..bc6f8ba8e7d36 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JiraEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JiraEndpointBuilderFactory.java @@ -1358,10 +1358,10 @@ public static class JiraHeaderNameBuilder { * * Group: producer * - * @return the name of the header {@code IssueAssigneeId}. + * @return the name of the header {@code JiraIssueAssigneeId}. */ - public String issueAssigneeId() { - return "IssueAssigneeId"; + public String jiraIssueAssigneeId() { + return "CamelJiraIssueAssigneeId"; } /** * The assignee's name of the issue. @@ -1370,10 +1370,10 @@ public String issueAssigneeId() { * * Group: producer * - * @return the name of the header {@code IssueAssignee}. + * @return the name of the header {@code JiraIssueAssignee}. */ - public String issueAssignee() { - return "IssueAssignee"; + public String jiraIssueAssignee() { + return "CamelJiraIssueAssignee"; } /** * The comma separated list of the issue's components. @@ -1382,10 +1382,10 @@ public String issueAssignee() { * * Group: producer * - * @return the name of the header {@code IssueComponents}. + * @return the name of the header {@code JiraIssueComponents}. */ - public String issueComponents() { - return "IssueComponents"; + public String jiraIssueComponents() { + return "CamelJiraIssueComponents"; } /** * The name of the updated field (i.e Status). @@ -1394,10 +1394,10 @@ public String issueComponents() { * * Group: consumer * - * @return the name of the header {@code IssueChanged}. + * @return the name of the header {@code JiraIssueChanged}. */ - public String issueChanged() { - return "IssueChanged"; + public String jiraIssueChanged() { + return "CamelJiraIssueChanged"; } /** * The id of the issue. @@ -1406,10 +1406,10 @@ public String issueChanged() { * * Group: common * - * @return the name of the header {@code IssueKey}. + * @return the name of the header {@code JiraIssueKey}. */ - public String issueKey() { - return "IssueKey"; + public String jiraIssueKey() { + return "CamelJiraIssueKey"; } /** * The priority's id of the issue. @@ -1418,10 +1418,10 @@ public String issueKey() { * * Group: producer * - * @return the name of the header {@code IssuePriorityId}. + * @return the name of the header {@code JiraIssuePriorityId}. */ - public String issuePriorityId() { - return "IssuePriorityId"; + public String jiraIssuePriorityId() { + return "CamelJiraIssuePriorityId"; } /** * The priority's name of the issue. @@ -1430,10 +1430,10 @@ public String issuePriorityId() { * * Group: producer * - * @return the name of the header {@code IssuePriorityName}. + * @return the name of the header {@code JiraIssuePriorityName}. */ - public String issuePriorityName() { - return "IssuePriorityName"; + public String jiraIssuePriorityName() { + return "CamelJiraIssuePriorityName"; } /** * The project's id of the issue. @@ -1442,10 +1442,10 @@ public String issuePriorityName() { * * Group: producer * - * @return the name of the header {@code ProjectKey}. + * @return the name of the header {@code JiraIssueProjectKey}. */ - public String projectKey() { - return "ProjectKey"; + public String jiraIssueProjectKey() { + return "CamelJiraIssueProjectKey"; } /** * The summary of the issue. @@ -1454,10 +1454,10 @@ public String projectKey() { * * Group: producer * - * @return the name of the header {@code IssueSummary}. + * @return the name of the header {@code JiraIssueSummary}. */ - public String issueSummary() { - return "IssueSummary"; + public String jiraIssueSummary() { + return "CamelJiraIssueSummary"; } /** * The transition id. @@ -1466,10 +1466,10 @@ public String issueSummary() { * * Group: producer * - * @return the name of the header {@code IssueTransitionId}. + * @return the name of the header {@code JiraIssueTransitionId}. */ - public String issueTransitionId() { - return "IssueTransitionId"; + public String jiraIssueTransitionId() { + return "CamelJiraIssueTransitionId"; } /** * The type's id of the issue. @@ -1478,10 +1478,10 @@ public String issueTransitionId() { * * Group: producer * - * @return the name of the header {@code IssueTypeId}. + * @return the name of the header {@code JiraIssueTypeId}. */ - public String issueTypeId() { - return "IssueTypeId"; + public String jiraIssueTypeId() { + return "CamelJiraIssueTypeId"; } /** * The type's name of the issue. @@ -1490,10 +1490,10 @@ public String issueTypeId() { * * Group: producer * - * @return the name of the header {@code IssueTypeName}. + * @return the name of the header {@code JiraIssueTypeName}. */ - public String issueTypeName() { - return "IssueTypeName"; + public String jiraIssueTypeName() { + return "CamelJiraIssueTypeName"; } /** * The list of all issue keys that are watched in the time of update. @@ -1502,10 +1502,10 @@ public String issueTypeName() { * * Group: consumer * - * @return the name of the header {@code IssueWatchedIssues}. + * @return the name of the header {@code JiraIssueWatchedIssues}. */ - public String issueWatchedIssues() { - return "IssueWatchedIssues"; + public String jiraIssueWatchedIssues() { + return "CamelJiraIssueWatchedIssues"; } /** * The comma separated list of watchers to add to the issue. @@ -1514,10 +1514,10 @@ public String issueWatchedIssues() { * * Group: producer * - * @return the name of the header {@code IssueWatchersAdd}. + * @return the name of the header {@code JiraIssueWatchersAdd}. */ - public String issueWatchersAdd() { - return "IssueWatchersAdd"; + public String jiraIssueWatchersAdd() { + return "CamelJiraIssueWatchersAdd"; } /** * The watchers of the issue to remove. @@ -1526,10 +1526,10 @@ public String issueWatchersAdd() { * * Group: producer * - * @return the name of the header {@code IssueWatchersRemove}. + * @return the name of the header {@code JiraIssueWatchersRemove}. */ - public String issueWatchersRemove() { - return "IssueWatchersRemove"; + public String jiraIssueWatchersRemove() { + return "CamelJiraIssueWatchersRemove"; } /** * The id of the parent issue. @@ -1538,10 +1538,10 @@ public String issueWatchersRemove() { * * Group: producer * - * @return the name of the header {@code ParentIssueKey}. + * @return the name of the header {@code JiraParentIssueKey}. */ - public String parentIssueKey() { - return "ParentIssueKey"; + public String jiraParentIssueKey() { + return "CamelJiraParentIssueKey"; } /** * The id of the child issue. @@ -1550,10 +1550,10 @@ public String parentIssueKey() { * * Group: producer * - * @return the name of the header {@code ChildIssueKey}. + * @return the name of the header {@code JiraChildIssueKey}. */ - public String childIssueKey() { - return "ChildIssueKey"; + public String jiraChildIssueKey() { + return "CamelJiraChildIssueKey"; } /** * The type of link. @@ -1562,10 +1562,10 @@ public String childIssueKey() { * * Group: producer * - * @return the name of the header {@code linkType}. + * @return the name of the header {@code JiraLinkType}. */ - public String linkType() { - return "linkType"; + public String jiraLinkType() { + return "CamelJiraLinkType"; } /** * The minutes spent. @@ -1575,10 +1575,10 @@ public String linkType() { * Default: -1 * Group: producer * - * @return the name of the header {@code minutesSpent}. + * @return the name of the header {@code JiraMinutesSpent}. */ - public String minutesSpent() { - return "minutesSpent"; + public String jiraMinutesSpent() { + return "CamelJiraMinutesSpent"; } } static JiraEndpointBuilder endpointBuilder(String componentName, String path) {