Edit an Article
Writing an article for the knowledge base is rarely accomplished in one sitting. You'll probably have a round or editing or two before it's ready for publication. Any edits made prior to publication are saved in the background automatically.
Every author has his or own style when it comes to revisions. Some prefer to write everything in one go, while others prefer to revisit, read, ponder, and rewrite their content prior to publication.
No matter which style you follow, YouTrack lets you make an unlimited number of edits to your article content and publish only when you think the time is right.
tip
Requires permissions: Read Article, Update Article
Select an article draft in the table of contents.
The article opens in the content editor.
Update the article content or set the values for other issue attributes.
To set or change the project that the article belongs to, open the project selector at the top of the page. Use the filter to find a project by its name.
Restrict the visibility of the draft to specific users, groups and teams prior to publication. For details, see Article Visibility.
Attach files. To learn more, see Attach Files to Articles.
When you're satisfied the content, click the Publish article button.
Even the most perfectly polished articles require updates from time to time. Policies change, goals require recalibration, and processes evolve. Luckily, users who have the proper permissions can update published articles at any time.
If an article has already been published, edits are recorded and displayed in the version history for the article. This history is available to anyone who has permission to read the article. If a user introduced unwanted changes, or you want to roll back to a specific published version of the article, a user with sufficient permission can restore to a previous version. For details, see Review Version History.
tip
Requires permissions: Read Article, Update Article
note
Articles in RevisionYouTrack automatically saves changes to article drafts while you type. If an article contains unpublished changes, it is marked with an in revision badge in the table of contents. This helps you locate articles that you may have started to update but never published.
To remove this badge from the table of contents, you have two options:
Click the Discard unpublished changes button. This restores the previously published version of the article. Any revisions added after the last publication date are discarded.
Finish authoring your updates and click the Save and publish button. An updated version of the article that includes your revisions is published to the knowledge base.
YouTrack supports two modes for formatting article content. In Visual mode, you can format the text in such a way that it closely resembles how the content should appear when published.
In this mode, you enter the content in the editor and use the controls in the toolbar to stylize the text.
![Visual editing mode for articles. Visual editing mode for articles.](https://resources.jetbrains.com/help/img/youtrack/2024.3/article-wysiwyg-mode.png)
The second mode that is supported for styling content in articles is Markdown. Markdown is a lightweight markup language that is used to apply formatting to plain text. To learn how to format text using Markdown in YouTrack, see Markdown Syntax.
![Editing an article in Markdown mode. Editing an article in Markdown mode.](https://resources.jetbrains.com/help/img/youtrack/2024.3/articles-markdown-mode.png)
In Markdown mode, you always see the content written in plain text. However, the options that can be used to format text in WYSIWIG mode are still available. When you click a formatting button in the toolbar, the corresponding Markdown characters are inserted at the current cursor position.
If you're not familiar with Markdown syntax, it may be hard to predict what your article will look like when published. For a quick preview that shows you what the article will look like when published, you can switch to Visual mode whenever you want. You can continue to edit the content in either mode according to your personal preference.
When you set the paragraph styling to Code block and paste a code snippet into an article in Visual mode, YouTrack tries to detect which language the code is written in and apply the appropriate syntax highlights. The name of the detected language appears in the lower-right corner of the code block.
![Syntax highlights in code block. Syntax highlights in code block.](https://resources.jetbrains.com/help/img/youtrack/2024.3/syntax-highlights-articles.png)
If the actual language is different from the language that is detected automatically, open the selection menu and select the correct language from the list.
You can accomplish the same result in Markdown mode by specifying the language used in the info string for a fenced code block. To learn more, see Fenced Code Blocks.
Thanks for your feedback!