Skip to content

Add Connection of User Stories with Swimlanes and/or Epics #177

@Seriousness

Description

@Seriousness

I am by no means a python pro and am currently writing a small script to transfer a few thousand of Nexcloud Deck entries to Taiga. I have already accomplished most things yet the python-taiga wrapper does not seem to have a way to connect UserStories to Swimlanes or Epics, does it? It would be nice if thats possible.

edit: it seems following solves my problem. though "related userstories" might also be relevant for others

add_user_story(
        card["title"],
        description=card["description"],
        tags= [ label["title"] for label in card["labels"] ],
        due_date=card['duedate'],
        swimlane=swimlane.id
    )
                                
# link epic to userstory
url = f"{host}/api/v1/epics/{epic.id}/related_userstories"
headers = {
        "Content-Type": "application/json",
        "Authorization": f"Bearer {api.token}"
    }

data = {
        "epic": epic.id,
        "user_story": user_story.id
}
                                
response = requests.post(url, headers=headers, json=data)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions