Content properties in Confluence - Index extraction defintion in Forge

Hello,

is there already a way to define index extraction (the schema definition) of content properties in a Forge App (similar to Content Property).

I thought I already read this somewhere, but I don’t find an actual documentation on it!

Thx in advance for every hint!

kind regards

The only way to do this at the moment is to use the confluenceContentProperties Connect module in Forge, but there’s an open ticket for indexed content property support in Forge that you can upvote/comment on: FRGE-208.

2 Likes

Hello Klaussner,

thx for the early response …

The page you linked, describes if one wants to use forge from connect apps!
Is it the correct link or did you mean this one: Content Property?

is there some tutorial how to invoke or register the connect module (the definition of the index extraction) from forge?

thx again for your time and answer

The wording in the documentation is a little misleading. You can also use Connect modules in Forge if you have configured your app correctly in the manifest. For example, you can add an object like this to your Forge manifest.yml to use the Connect module for content properties:

connectModules:
  confluence:confluenceContentProperties:
    - key: property
      name:
        value: "Property name"
      keyConfigurations:
        - propertyKey: "property_key"
          extractions:
            - objectName: "property"
              type: string
              alias: "property_alias"
2 Likes

Thank you very much for the clarification

Hello @klaussner ,

does that really mean, I have to deploy an “empty” connect app somewhere in the cloud, just to be able to define the remotes and app.connect entries in the manifest?

I mean, the connect app does not specify anything … just the confluenceContentProperties module …

Another question … is there a way to add values to the indexer via API dynamically?

Thx again

You will have to add a “fake” remote, but you don’t need to actually host anything there. The remote domain is added to the list of domains and permissions that admins must approve when they install your app. I’m not aware of an API that can add properties to the index dynamically. :disappointed:

1 Like

we did this (at least in our understanding)
but we didn’t get asked to approve anything (in dev environment)
Hmmm … it was not picking up properties, when they were set via API on existing content!

Thanks again for your explanations

The permissions and domains should have been listed when you ran the forge install command. Admins only have to approve them in the Confluence UI when they install a production version of the app through the Marketplace or a shared link.

Sometimes it can take a while until the search index is updated after a property was changed.