-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 9.2.1, 9.4.0, 9.2.3, 8.5.21
-
Component/s: Apps - Confluence Questions
-
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:
- Enable the Questions for Confluence plugin.
- Click on the Questions link at the top bar menu.
- Click on Ask a question.
- Select the space and leave all other fields empty.
- Hit Cancel.
Answer Drafts:
- Enable the Questions for Confluence plugin.
- Click on the Questions link at the top bar menu.
- Open a question previously asked.
- 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.
- 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) );
- 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) );
- In Confluence, navigate to General Configuration > Cache Management
- Scroll all the way to the bottom and click on Flush All
- Go back into your Profile > Drafts and see that the drafts have been removed