Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-70385

Defining a webhook with space_property_equal_to condition fails

    XMLWordPrintable

Details

    Description

      Issue Summary

      Webhooks can't be defined using the space_property_equal_to condition.

      Steps to Reproduce

      1. Define a webhook as follows:

       

      "webhooks": [ { "event": "page_created", "url": "/rest/webhook/page/page_created", "conditions": [ { "condition": "space_property_equal_to", "params": { "propertyKey": "app_prop_name", "objectName": "key", "value": "true" } } ] } ]
      

       

      Expected Results

      The descriptor is valid.

      Actual Results

      Installation failed. The app includes a Webhook module with an unsupported condition (space_property_equal_to).

      Workaround

      Define the webhook as:

      "webhooks": [ { "event": "page_created", "url": "/rest/webhook/page/page_created", "conditions": [ { "condition": "entity_property_equal_to", "params": { "entity": "space", "propertyKey": "app_prop_name", "objectName": "key", "value": "true" } } ] } ]
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dmorrow@atlassian.com Dugald Morrow
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: