Confluence Questions drafts cannot be edited or discarded

XMLWordPrintable

    • 5
    • Severity 3 - Minor
    • 18

      Issue Summary

      Drafts created by the Confluence Questions app, which appear under User Profile > Drafts, can't be discarded or edited. This happens for all questions and answer drafts.

      Steps to Reproduce

      Question Drafts:

      1. Enable the Questions for Confluence plugin.
      2. Click on the Questions link at the top bar menu.
      3. Click on Ask a question.
      4. Select the space and leave all other fields empty.
      5. Hit Cancel.

      Answer Drafts:

      1. Enable the Questions for Confluence plugin.
      2. Click on the Questions link at the top bar menu.
      3. Open a question previously asked.
      4. Just click on Save leaving all fields empty.

      Once you access your Drafts from your profile page you'll see the list containing the drafts.

      Expected Results

      The Draft list should have the Actions button available to either discard or resume the draft.

      Actual Results

      The Actions button is not displayed for Confluence Questions Drafts.

      Workaround

      A temporary workaround is to change the draft status from the database.

      1. List all Confluence Question drafts:
        SELECT *
        FROM content c
        WHERE (c.contentid IN (
          SELECT contentid 
          FROM content 
          WHERE pluginkey = 'com.atlassian.confluence.plugins.confluence-questions:question-draft' 
          AND content_status = 'draft'
          AND title = 'ignorable draft title')
        OR c.contentid IN (
          SELECT contentid 
          FROM content 
          WHERE pluginkey = 'com.atlassian.confluence.plugins.confluence-questions:answer-draft' 
          AND content_status = 'draft' 
          AND title IS NULL)
        );
        
      2. Update the content status to deleted for all drafts listed:
        UPDATE content c SET content_status = 'deleted' 
        WHERE (c.contentid IN (
          SELECT contentid 
          FROM content 
          WHERE pluginkey = 'com.atlassian.confluence.plugins.confluence-questions:question-draft' 
          AND content_status = 'draft'
          AND title = 'ignorable draft title')
        OR c.contentid IN (
          SELECT contentid 
          FROM content 
          WHERE pluginkey = 'com.atlassian.confluence.plugins.confluence-questions:answer-draft' 
          AND content_status = 'draft' 
          AND title IS NULL)
        );
        
      3. In Confluence, navigate to General Configuration > Cache Management
      4. Scroll all the way to the bottom and click on Flush All
      5. Go back into your Profile > Drafts and see that the drafts have been removed

            Assignee:
            Saba Taseer
            Reporter:
            Marcos Junior
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: