It is perfectly fine to document the issue you solved by asking a question and answering your own question. Just keep the time between the question and answer short (e.g. prepare it in advance). You can also leave a comment to your question explaining why you answered your own question and perhaps add a reference to one of the articles below.
See the answers to these questions:
Is it poor etiquette to answer your own question?Is it poor etiquette to answer your own question?
Should I answer my own question, or not?Should I answer my own question, or not?
Why could it be considered gaming the system if you answer your own question?Why could it be considered gaming the system if you answer your own question?
Etiquette for answering your own questionEtiquette for answering your own question
Consistently Answering your Own QuestionsConsistently Answering your Own Questions