Bulk create topics from Obsidian

I have 120+ journal entries that I created in Obsidian, so they are markdown files.
Is there a way to import all of them as topics without having to create each topic by hand? If so, it’s also important that the timestamp is very specific, because there’s a “timeline”. Even if the timestamp thing wouldn’t be possible, at least being able to just create all topics at once would be great. I still need to make some adjustments anyway, to images in particular, but it would save me some work.

1 Like

There is a Obsidian plugin to publish on Discourse, but I have no idea if it can help you in this context:

From a quick test, you would have to manually tell what note to publish. There is no bulk publishing. It’s still faster than creating a topic, copy/paste title/content.

3 Likes

This is indeed a great tool. Thank you so much for sharing!
And it’s great, because:

1 - The title of the note is the title of the Discourse topic
2 - I can pick the category I want to import to
3 - When I wrote those notes I added the date as the first line like this: Dec 03, 2022. Now with the help of Keyboard Maestro I created a macro to replace it to this 2022-12-03. That means I just need to update all dates to that format in Obsidian first, and when I import it to the forum, I can quickly add the date to the Change Timestamp field.

Time saver for sure, even if I have to do it one by one. Definitely better than creating them manually, copying, pasting, etc. You’re a life saver! :slight_smile:

And by the way, happy birthday!!! Hope you have a great day :birthday_cake:

3 Likes

When there’s a matter of importing a certain number of topics, Discourse’s API can be very valuable.
If there was no existing Obsidian plugin to do this import, you’d probably rely on this.

Alternatively, a Ruby script could also do the job. ask.discourse.org can return reliable output for this kind of task.

2 Likes

Unfortunately, I’m not familiar with APIs. I know they exist, I know they connect 2 or more things, but that’s pretty much it.

To be honest, for a musician, I already know more than I expected to ever know when it comes to this kind of “tech-talk” :wink:

I’m glad I learned it, though, because it allows me to do a lot of things myself that would require lots of different people and of course, lots of investment.

1 Like