-
Notifications
You must be signed in to change notification settings - Fork 41
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
Missing description for user stories? #105
Comments
Just noticed this also seems to be the case with the api.issues.list()[0].description
AttributeError: 'Issue' object has no attribute 'description' Source code looks like it does have handling for this though |
This might not totally relate to the originally submitted issue, but: It appears that taiga REST api does not return description on https://docs.taiga.io/api.html#issues-list or https://docs.taiga.io/api.html#user-stories-list so this technically isn't an issue with python-taiga, but the way the Issues, Userstory models in python-taiga are made can lead to the assumption that it should work when using The issue, and user-story individual getters do return this, but it leads to very slow performance. # Issues workaround
[issue.requester.get(f"/issues/{issue.id}").json().get("description") for issue in api.issues.list()]
# User stories workaround
[user_story.requester.get(f"/userstories/{user_story.id}").json().get("description") for user_story in api.user_stories.list()] For my implementation, i'm just going to hold off grabbing the description until it is needed and use the individual id getter when it is needed, and when i request one, i just send id in the bugitem object: description = api.issues.requester.get(
f"/issues/{bugitem.id}"
).json().get("description") |
Good find, according to this google group thread it isn't available in the "list" commands because the descriptions can be very long. It mentions a "detail" call but I'm not seeing a separate "detail" option in the python taiga API itself, so I think your solution of getting the raw JSON and pulling the description is the best we'll get. |
@najarvis @PeterAlabaster thanks for reporting this, it's actually a documentation issue, as the attribute is not available in the list response |
Description
When creating a user story you have the option to specify a description, but when you get the UserStory that is created you can't access that variable. There is a "comment" field, I'm not sure if those are supposed to be the same
Steps to reproduce
Versions
Python version 3.7.3
Expected behaviour
A 'description' variable that holds the description you just added. You can see it when you access Taiga in the browser, just not in code.
Actual behaviour
No description.
Additional information
The comment variable is empty too
The text was updated successfully, but these errors were encountered: