Versions Compared

Key

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

Simple app to manage or space properties and centralize the space related common metadata, properties, variables, strings, tokens in fields for reuse, tracking and automation. These fields can be accessed or shared among many confluence pages via macro "Space fields".

...

  • Space fields can be updated and fetched via REST API

  • Helps to avoid creating page versions from automated api updates.

  • Provides option to show all space properties

  • Provides macros i.e.

    • Space fields

Quick Start Steps!

Status
colourGreen
titleStep-1

Go to Space > Apps > Space Fields.

Status
colourGreen
titleStep-2

Go to any page → Click edit → Add macro space fields.

...

Confluence Cloud Space Properties REST API documentation.

Info

Please note. For updates through REST API, Property name must starts with prefix spacefield-

e.g. spacefield-Customer Name

Status
colourBlue
titleDemo - Get Space ID

Code Block
breakoutModewide
curl --request GET \
  --url 'https://{your-domain}/wiki/api/v2/spaces?key={space-key}' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json'

Status
colourBlue
titleDemo - Get Property ID

Code Block
breakoutModewide
curl --request GET \
  --url 'https://{your-domain}/wiki/api/v2/spaces/{space-id}/properties?key=spacefield-{Property Name}' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json'

Status
colourBlue
titleDemo - Add or Update

Code Block
breakoutModewide
curl --request PUT \
  --url 'https://{your-domain}/wiki/api/v2/spaces/{space-id}/properties/{property-id}' \
  --user 'email@example.com:<api_token>' \
  --header 'Accept: application/json' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "ilaesolution-space-propertiesspacefield-{Property Name}",
  "value": "--testing--",
  "version": {
    "number": 10
  }
}'

...