How to capture storage format for Confluence Question

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

このプロセスはデータベースを直接操作する必要があり、Confluence が意図する機能の一部ではありません。そのため、このプロセスはアトラシアンのサポートサービスの対象外であり、このページの情報は現状のまま提供されます。本番インスタンスに変更を適用する前に、開発またはステージング環境で十分なテストを行う必要があります。

要約

On some occasions it might be necessary to get the storage format of Confluence question or answers.

You can get Confluence Storage Format for Confluence pages from WebUI, but Confluence Questions do not have this option, so you need to pull it directly from DB.

環境

Tested with

  • Confluence Question v. 2.7.34
  • Confluence v 7.13.0

ソリューション

You can pull storage format directly from the database following these instructions.

  1. Open question in the web browser and take note of Content ID in URL:

    http://confluence:27130/questions/[content_id]/question_asked_here
  2. Use this query to get storage format for question and all answers under it

    SELECT c.pluginkey AS type, b.body AS storage_format 
    FROM bodycontent AS b
    JOIN content AS c ON b.contentid = c.contentid
    WHERE [content_id]
    IN(c.contentid, c.parentccid)
    AND c.content_status='current'
    ORDER BY c.pluginkey DESC;

    (info) The query above was tested on PostgreSQL, adjustments might be needed to used on a different DBMS.


最終更新日 2021 年 11 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.