nephila / python-taiga

:evergreen_tree: Python module for communicating with the Taiga API
https://python-taiga.readthedocs.io
MIT License
96 stars 41 forks source link

Changing user story status moves the user story to the Unclassified swimlane #185

Open abelizarov-nicct opened 4 months ago

abelizarov-nicct commented 4 months ago

Description

If I change user story status with Python API, the user story moves to the Unclassified Kanban swimlane. This happens with both https://api.taiga.io and local hosted Taiga.

Steps to reproduce

The code is like this:

from taiga import TaigaAPI

api = TaigaAPI(host=...)
api.auth(username=..., password=...)
project = api.projects.get_by_slug(project_slug)
story = project.get_userstory_by_ref(user_story_key)
story.status = new_status_id
story.update()

Versions

Expected behaviour

The status of the user story should change. The story should move in the Kanban swimlane to the new state. The swimlane should not change.

Actual behaviour

The status of the story does change. This is correct.

But the user story also moves to the Unclassified swimlane. This is incorrect.

Additional information

If I change the status in Web UI, the user story stays in its swimlane.

I tried to change the user story swimlane:

story.swimlane = new_swimlane
story.update()

This only works if new_swimlane=None, then this moves the story to the Unclassified swimlane. If new_swimlane is an integer id of the swimlane, this doesn't work.