Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Expand
titleiHub 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

Code Block
https://pubsub.googleapis.com/v1/{TOPIC_ID}:publish

Select PubSub [OAuth2] created in prerequisite tutorial here Google Authentication Setup

Enter body

Code Block
{
  "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.

Info

Highlight important information in a panel like this one. To edit this panel's color or style, select one of the options in the menu.

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@26613b
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "RIFJ"
labelskb-how-to-article