You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
This article describes how to connect Jira to Google PubSub to publish to a topic and to consume a topic.
\uD83D\uDCD8 Instructions
Prerequisites;
Follow the guide here Google Authentication Setup to setup the OAuth2 connection
Follow this guide to create a pubsub topic https://cloud.google.com/pubsub/docs/admin
Example topic
| | |
---|
1 | Click Create Topic | |
2 | Enter a topic namer | |
Creating an integration;
iHub Cloud steps to post and subscribe to a topic
| | |
---|
1 | Click on Integrations Click Create Integration | |
2 | Enter a name. Note that the integration is disabled until we toggle the enabled flag. | |
3 | Click Trigger Select Issue event Select Issue created Add an JQL to filter when to trigger | |
4 | Click Add new Action Select Web Action | |
5 | Enter a name Select POST Enter the url below and change the TOPIC_ID to be the one you used
https://pubsub.googleapis.com/v1/{TOPIC_ID}:publish
Select PubSub [OAuth2] created in prerequisite tutorial here Google Authentication Setup Enter body
{
"messages": [
{
"data": "{{issue.toString}}",
"attributes": {
"issuekey": "{{issue.key}}",
"projectKey": "{{issue.project.key}}"
}
}
]
}
| |
6 | Save the integration Goto the project that match the JQL for the trigger and create an issue. | |
\uD83D\uDCCB Related articles
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: