changes.mady.by.user Sales Rixter AB
Saved on 2022-12-28
...
Click on Integrations
Click Create Integration
Enter a name. Note that the integration is disabled until we toggle the enabled flag.
Click Trigger
Select Issue event
Select Issue created
Add an JQL to filter when to trigger
Click Add new Action
Select Web Action
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
More on how the body can be structured is found here https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/publish
{ "messages": [ { "data": "{{issue.toString}}", "attributes": { "issuekey": "{{issue.key}}", "projectKey": "{{issue.project.key}}" } } ] }
Save the integration
Goto the project that match the JQL for the trigger and create an issue.