We need to eventually send all Jira event information into a Google Pub/Sub Topic. The first use case is to send ticket data when a ticket creation event occurs. We need to do the following in this story:
- Create a new listener
- Identify if all ticket data variables are available in Script-runner to include in the body sent to Google Pub/Sub.
- Configure the listener to fire on ticket creation events
- Use Groovy to authenticate, build the JSON and send a POST request to Google
- Attached is a working Groovy POST request sample for reference.
- We have a test topic configured, please reach out for Google token when ready to being work.
Here is a Howto guide for publishing data
https://cloud.google.com/pubsub/docs/publisher