Sybit-Education / Diveni

Diveni - The free Planning Poker App to be used in remote Teams connecting optionally JIRA or Azure DevOps for user stories
https://diveni.io
GNU Affero General Public License v3.0
33 stars 23 forks source link

Error when deleting a User Story Immediately after creation in Issue Tracker Mode #885

Closed Dan1elBox closed 5 days ago

Dan1elBox commented 1 week ago

Describe the bug When attempting to create and immediately delete user stories in Issue Tracker mode, an error occurs. This happens because the User Story is initially added in our frontend but is only synchronized with the Issue Tracker once a title is set.

As a result, if a user story is created and has not been assigned a title yet, and are then deleted, an error is thrown as the system tries to delete a non-existent user story from the Issue Tracker.

To Reproduce Steps to reproduce the behavior:

  1. Create a session with Issue Tracker mode
  2. Add a user story without entering anything in the title input field
  3. Attempt to delete this story again.
  4. See error

Expected behavior It should be possible to delete User Stories that exist only in the frontend and have not yet been synced with the Issue Tracker, without causing errors.