{
  "key": "questions-answers-for-confluence",
  "name": "Community Questions for Confluence",
  "description": "Let your team ask questions and share answers to build thriving Q&A community on Confluence",
  "vendor": {
    "name": "Firnity",
    "url": "https://communityquestions.io"
  },
  "baseUrl": "https://app.questions-answers-community-prod.com",
  "links": {
    "self": "https://app.questions-answers-community-prod.com/atlassian-connect.json",
    "homepage": "https://app.questions-answers-community-prod.com/atlassian-connect.json"
  },
  "authentication": {
    "type": "jwt"
  },
  "lifecycle": {
    "installed": "/installed",
    "enabled": "/enabled"
  },
  "scopes": ["READ", "WRITE", "DELETE", "ACT_AS_USER", "ACCESS_EMAIL_ADDRESSES"],
  "enableLicensing": true,
  "modules": {
    "adminPages": [
      {
        "location": "system.admin/qans-admin",
        "weight": 10,
        "url": "/introduction?path={ac.questions-answers-for-confluence.path}",
        "name": {
          "value": "Introduction"
        },
        "key": "introduction"
      },
      {
        "location": "system.admin/qans-admin",
        "weight": 10,
        "url": "/settings?path={ac.questions-answers-for-confluence.path}",
        "name": {
          "value": "Settings"
        },
        "key": "settings"
      }
    ],
    "postInstallPage": {
      "url": "/introduction?path={ac.questions-answers-for-confluence.path}",
      "name": {
        "value": "Community Questions - Getting Started"
      },
      "key": "introduction-post-install"
    },
    "webSections": [
      {
        "location": "system.admin",
        "weight": 50,
        "key": "qans-admin",
        "name": {
          "value": "Community Questions"
        }
      }
    ],
    "webPanels": [
      {
        "url": "/dashboard?path={ac.questions-answers-for-confluence.path}&is_admin={condition.user_is_admin}",
        "location": "atl.dashboard.secondary",
        "layout": {
          "width": "100%",
          "height": "120"
        },
        "weight": 50,
        "supportsNative": false,
        "name": {
          "value": "Questions Feed"
        },
        "key": "dashboardView"
      }
    ],
    "spaceToolsTabs": [
      {
        "url": "/space?spaceId={space.id}&spaceKey={space.key}&path={ac.questions-answers-for-confluence.path}",
        "location": "contenttools",
        "name": {
          "value": "Questions"
        },
        "conditions": [
          {
            "condition": "has_space_permission",
            "params": {
              "permission": "ADMINISTER"
            }
          }
        ],
        "key": "space"
      }
    ],
    "generalPages": [
      {
        "key": "globalQuestionsView",
        "location": "system.header/left",
        "name": {
          "value": "Questions"
        },
        "icon": {
          "url": "/images/questions.svg"
        },
        "url": "/questions?contentId={content.id}&contentType={content.plugin}&spaceId={space.id}&spaceKey={space.key}&path={ac.questions-answers-for-confluence.path}&is_admin={condition.user_is_admin}&is_guest={user.isExternalCollaborator}",
        "conditions": [
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "addon_property_equal_to",
            "params": {
              "objectName": "enabled",
              "propertyKey": "questions-answers-for-confluence_globalQuestions",
              "value": "true"
            }
          }
        ]
      },
      {
        "url": "/questions?contentId={content.id}&contentType={content.plugin}&spaceId={space.id}&spaceKey={space.key}&path={ac.questions-answers-for-confluence.path}&is_admin={condition.user_is_admin}&is_guest={user.isExternalCollaborator}",
        "key": "questionsView",
        "location": "",
        "name": {
          "value": "Questions"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          },
          {
            "or": [
              {
                "condition": "addon_property_contains_context",
                "params": {
                  "propertyKey": "questions-answers-for-confluence_spaces",
                  "contextParameter": "space.key"
                }
              },
              {
                "condition": "addon_property_equal_to",
                "params": {
                  "objectName": "enabled",
                  "propertyKey": "questions-answers-for-confluence_spaceQuestionsInEverySpace",
                  "value": "true"
                }
              }
            ]
          }
        ]
      },
      {
        "url": "/tags?contentId={content.id}&contentType={content.plugin}&spaceId={space.id}&spaceKey={space.key}&path={ac.questions-answers-for-confluence.path}",
        "key": "tagsView",
        "location": "",
        "name": {
          "value": "Tags"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "addon_property_equal_to",
            "params": {
              "objectName": "enabled",
              "propertyKey": "questions-answers-for-confluence_tags",
              "value": "true"
            }
          }
        ]
      },
      {
        "url": "/profiles?contentId={content.id}&contentType={content.plugin}&spaceId={space.id}&spaceKey={space.key}&path={ac.questions-answers-for-confluence.path}",
        "key": "profilesView",
        "location": "",
        "name": {
          "value": "Profiles"
        },
        "conditions": [
          {
            "condition": "user_is_logged_in"
          },
          {
            "condition": "addon_property_equal_to",
            "params": {
              "objectName": "enabled",
              "propertyKey": "questions-answers-for-confluence_profiles",
              "value": "true"
            }
          }
        ]
      }
    ],
    "dynamicContentMacros": [
      {
        "key": "questions-macro",
        "name": {
          "value": "Questions"
        },
        "description": {
          "value": "Embed a Community Questions list"
        },
        "url": "/macro/questions?spaceId={space.id}&spaceKey={space.key}",
        "editor": {
          "url": "/macro/questions/edit?spaceId={space.id}&spaceKey={space.key}",
          "editTitle": {
            "value": "Edit Questions"
          },
          "insertTitle": {
            "value": "Insert Questions"
          }
        },
        "icon": {
          "width": 80,
          "height": 80,
          "url": "/images/questions.svg"
        },
        "categories": ["content"],
        "outputType": "block",
        "bodyType": "none"
      }
    ],
    "customContent": [
      {
        "key": "question",
        "bodyType": "storage",
        "name": {
          "value": "Questions "
        },
        "apiSupport": {
          "supportedContainerTypes": ["space"],
          "supportedSpacePermissions": ["read", "create", "delete"],
          "supportedChildTypes": [
            "ac:questions-answers-for-confluence:answer",
            "ac:questions-answers-for-confluence:reaction",
            "comment",
            "attachment"
          ],
          "indexing": {
            "enabled": true
          }
        },
        "uiSupport": {
          "listViewComponent": {
            "moduleKey": "questionsView"
          },
          "contentViewComponent": {
            "moduleKey": "questionsView"
          },
          "icons": {
            "item": {
              "url": "/images/questions-black.svg"
            }
          }
        }
      },
      {
        "key": "answer",
        "name": {
          "value": "Answers"
        },
        "apiSupport": {
          "supportedContainerTypes": ["ac:questions-answers-for-confluence:question"],
          "supportedChildTypes": ["ac:questions-answers-for-confluence:reaction", "comment", "attachment"],
          "indexing": {
            "enabled": true
          }
        },
        "uiSupport": {
          "contentViewComponent": {
            "moduleKey": "questionsView"
          },
          "listViewComponent": {
            "moduleKey": "questionsView"
          },
          "icons": {
            "item": {
              "url": "/images/questions-black.svg"
            }
          }
        }
      },
      {
        "key": "reaction",
        "name": {
          "value": "Votes"
        },
        "apiSupport": {
          "supportedContainerTypes": [
            "ac:questions-answers-for-confluence:question",
            "ac:questions-answers-for-confluence:answer"
          ],
          "supportedSpacePermissions": ["read", "create", "delete"],
          "indexing": {
            "enabled": true
          }
        },
        "uiSupport": {
          "contentViewComponent": {
            "moduleKey": "questionsView"
          },
          "listViewComponent": {
            "moduleKey": "questionsView"
          },
          "icons": {
            "item": {
              "url": "/images/questions-black.svg"
            }
          }
        }
      },
      {
        "key": "tag",
        "bodyType": "storage",
        "name": {
          "value": "Tags"
        },
        "apiSupport": {
          "supportedContainerTypes": ["space"],
          "supportedSpacePermissions": ["read", "create", "delete"],
          "supportedChildTypes": ["attachment"],
          "preventDuplicateTitle": true,
          "indexing": {
            "enabled": true
          }
        },
        "uiSupport": {
          "listViewComponent": {
            "moduleKey": "tagsView"
          },
          "contentViewComponent": {
            "moduleKey": "tagsView"
          },
          "icons": {
            "item": {
              "url": "/images/questions-black.svg"
            }
          }
        }
      },
      {
        "key": "user-profile",
        "bodyType": "storage",
        "name": {
          "value": "User Profiles"
        },
        "apiSupport": {
          "supportedContainerTypes": ["space"],
          "preventDuplicateTitle": false,
          "indexing": {
            "enabled": true
          }
        },
        "uiSupport": {
          "listViewComponent": {
            "moduleKey": "profilesView"
          },
          "contentViewComponent": {
            "moduleKey": "profilesView"
          },
          "icons": {
            "item": {
              "url": "/images/questions-black.svg"
            }
          }
        }
      }
    ],
    "confluenceContentProperties": [
      {
        "key": "questions-answers-for-confluence-index",
        "keyConfigurations": [
          {
            "propertyKey": "questions-answers-for-confluence_totalVotes",
            "extractions": [
              {
                "objectName": "votes",
                "type": "number",
                "alias": "votes"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_totalViews",
            "extractions": [
              {
                "objectName": "views",
                "type": "number",
                "alias": "views"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_totalPoints",
            "extractions": [
              {
                "objectName": "total",
                "type": "number",
                "alias": "points"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_acceptedAnswerId",
            "extractions": [
              {
                "objectName": "id",
                "type": "string",
                "alias": "acceptedanswerid"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_totalQuestions",
            "extractions": [
              {
                "objectName": "count",
                "type": "number",
                "alias": "totalQuestions"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_totalAnswers",
            "extractions": [
              {
                "objectName": "count",
                "type": "number",
                "alias": "totalAnswers"
              }
            ]
          },
          {
            "propertyKey": "questions-answers-for-confluence_globalTag",
            "extractions": [
              {
                "objectName": "global",
                "type": "number",
                "alias": "global"
              }
            ]
          }
        ],
        "name": {
          "value": "Questions and Answers index"
        }
      }
    ]
  },
  "apiMigrations": {
    "gdpr": true,
    "context-qsh": true,
    "signed-install": true
  }
}
