Task malformated when created via API #1965

Closed
opened 2026-03-22 13:48:45 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @BasselRawda on GitHub (Jun 25, 2024).

Description

I am trying to create tasks from my nodejs app to my self-hosted Vikunja instance. When setting the description, the markdown characters and formatting are not being taken into account.
URL used: VIKUNJA_BASE_URL/projects/1/tasks
Description string:

let template = ## Bug Report Submission

  **Submitted By**:
  xxx (ID: 123)

  **User Requested**:
  yyy (ID: 123)

  **Submitted At**:
  ${new Date().toISOString()}

  **Description**: ${description}`;

  const data = {
    title: `${command}: ${subject}`,
    description: template,
    hex_color: "#D3D3D3",
  };

Vikunja Version

v0.23.0

Browser and version

No response

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @BasselRawda on GitHub (Jun 25, 2024). ### Description I am trying to create tasks from my nodejs app to my self-hosted Vikunja instance. When setting the description, the markdown characters and formatting are not being taken into account. URL used: VIKUNJA_BASE_URL/projects/1/tasks Description string: let template = ## Bug Report Submission **Submitted By**: xxx (ID: 123) **User Requested**: yyy (ID: 123) **Submitted At**: ${new Date().toISOString()} **Description**: ${description}`; const data = { title: `${command}: ${subject}`, description: template, hex_color: "#D3D3D3", }; ### Vikunja Version v0.23.0 ### Browser and version _No response_ ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Jun 28, 2024):

The frontend supports markdown shortcuts and pasting, but the api does not support it. You need to convert your markdown to html if you want to have it displayed with rich text in the web frontend.

@kolaente commented on GitHub (Jun 28, 2024): The frontend supports markdown shortcuts and pasting, but the api does not support it. You need to convert your markdown to html if you want to have it displayed with rich text in the web frontend.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#1965