Chapter 34. Jira Add Comment Sink
Add a new comment to an existing issue in Jira.
The Kamelet expects the following headers to be set:
-
issueKey/ce-issueKey: as the issue code.
The comment is set in the body of the message.
To authenticate, a username/password or personal token must be defined. We recommend to use personal token as it is a safer way to get access to Jira.
34.1. Configuration Options Copy linkLink copied to clipboard!
The following table summarizes the configuration options available for the jira-add-comment-sink Kamelet:
| Property | Name | Description | Type | Default | Example |
|---|---|---|---|---|---|
| jiraUrl * | Jira URL | The URL of your instance of Jira | string | ||
| password | Password | The password to access Jira | string | ||
| personal-token | Personal Token | Personal Token | string | ||
| username | Username | The username to access Jira | string |
* = Fields marked with an asterisk are mandatory.
34.2. Dependencies Copy linkLink copied to clipboard!
34.2.1. Quarkus dependencies Copy linkLink copied to clipboard!
34.3. Usage Copy linkLink copied to clipboard!
34.3.1. Camel JBang usage Copy linkLink copied to clipboard!
34.3.1.1. Prerequisites for JBang Copy linkLink copied to clipboard!
- Install JBang.
You have executed the following command:
jbang app install camel@apache/camel
jbang app install camel@apache/camelCopy to Clipboard Copied! Toggle word wrap Toggle overflow
34.3.1.2. Running a route with JBang Copy linkLink copied to clipboard!
Suppose you have a file named route.yaml with this content:
You can now run it directly through the following command.
camel run route.yaml
camel run route.yaml
34.3.2. Knative Sink Copy linkLink copied to clipboard!
You can use the jira-add-comment-sink Kamelet as a Knative sink by binding it to a Knative object.
jira-add-comment-sink-binding.yaml
34.3.3. Kafka Sink Copy linkLink copied to clipboard!
You can use the jira-add-comment-sink Kamelet as a Kafka sink by binding it to a Kafka topic.
jira-add-comment-sink-binding.yaml