Adding general page to bitbucket through atlassian connect app

Hello fellow devs,

I am struggling to add general page to Bitbucket using Atlassian Connect as described here https://developer.atlassian.com/cloud/bitbucket/modules/general-page/

My example:

// ... some atlassian connect descriptor body...
    generalPage: [
      {
        key: 'atlas-bot-test-general-page',
        name: {
          value: 'test general page'
        },
        url: '/someurl?someParam=someValue'
      }
    ],
// ... some atlassian connect descriptor body...

Bitbucket consumes the descriptor properly (with generalPage or generalPages property as well). But there is no new menu entry in workspace on which the addon is installed.

I assume that after migration to workspaces this may work differently, even though - is there any link I can build to access such general page directly?

Regards,
Piotr

Hi @piotr.bojko,

Pretty sure that you have to manually add a web-item that links to your generalPage so that your users can find it. :slight_smile:

Cheers,
Sven

Yeah, I got a working web item but following docs on linking to a page this snippet does not work. When refreshing a descriptor in console Bitbucket shows “Something went wrong” message.

   webItems: [
      {
        url: 'atlas-bot-test-general-page',
        name: {
          value: "Example Web Item"
        },
        location: "org.bitbucket.repository.navigation",
        key: "fjierjfeifjiewjofjweo",
        context: 'page',
      }
    ],
    generalPages: [
      {
        key: 'atlas-bot-test-general-page',
        name: {
          value: 'test general page'
        },
        url: '/someurl'
      }
    ],

Hi! Might be a late response but we had a similar issue you had, but found that a repository page worked and suited us better and might work for your use case, i.e.:

    "repoPage": [
      {
        "key": "atlas-bot-test-general-page",
        "url": "/someurl",
        "location": "org.bitbucket.repository.navigation",
        "name": {
          "value": "test general page"
        }
      }
    ]