Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Seriousness opened this issue Feb 21, 2024 · 0 comments
Open

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

Seriousness opened this issue Feb 21, 2024 · 0 comments

Comments

@Seriousness
Copy link

Seriousness commented Feb 21, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant