Kafka - How to send issue to a topic
This tutorial describes how to send an issue to a topic in Kafka.
To do this, you must install the free Kafka extension to iHub.
Â
Step 1.
Go to the integrations and click Create
When the Kafka extension is installed there will be a Kafka option.
Enter a name and click create.
Step 2.
On the Kafka action there is 5 mandatory fields to fill in.
Topic Name: what topic to post the data to
Broker address(s)
Producer Id
Key serializer - If none is selected it will default to StringSerializer.class
Value serializer
Optional Include Attachment(s)
Step 3 - message
The Body section will be the message sent out to the Kafka topic, in here any issue variable or other variable is available to use.
In our example above we will alway post summary and description.
Â
If attachment is selected it will format the message as below:
{"body":"message,"files":[{"name":"filename","content":"base64encoded"}]}
Where body is the message part written in the last textbox
Files are base64encoded.
Step 4 - Add a trigger
Our trigger will be Issue Created when ever project is KAFKAOUT