-
Notifications
You must be signed in to change notification settings - Fork 14
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
Unable to retrieve custom Enum bundles #9
Comments
Hello! Really, But you can get all information about value from object.attirbutes, like this: bundle = connection.get_enum_bundle('40-30-1470750250809')
bundle_value = bundle.values[0]
print(bundle_value.element_name)
print(bundle_value.description) I don't know why What python version do you use? I get an error in |
@allburov Python 3.6.3 |
@allburov yes, you can close the issue. Thank you! |
Thanks for the feedback! :) |
I've finally found out the the code that produce the results I wanted: def teams(self) -> List[str]:
bundle_id = self.__connection.get_custom_field('Team')['defaultBundle']
return (i.name for i in self.__connection.get_enum_bundle(bundle_id).values) |
It's not possible to retrieve custom enum bundles. These methods from
Connection
class don't work:They return empty objects. I've debugged these objects and I could see that their
_data
properties is an empty dictionary.When issuing an HTTP request directly, as in:
This is the (anonymized) response I get:
This is my debugging session:
The text was updated successfully, but these errors were encountered: