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

An error has occurred: 'NoneType' object has no attribute 'startswith' #141

Open
Grijak opened this issue Aug 22, 2024 · 3 comments
Open
Assignees
Labels
backlog An issue which will be reviewed at a later time enhancement New feature or request

Comments

@Grijak
Copy link

Grijak commented Aug 22, 2024

Hello,

I am currently trying to perform a JSON export with jiraone.

Unfortunately I get the following message:

Downloading issue export in JSON format. <Response [200]> OK ::downloading issues at page: 0 of 0 Processing. Current progress: 100% Converting Jira custom field names to Jira JSON compatible names. Verifying users membership Searching for user data. Verifying Sprint values. Extracting Sprint Ids from values. Searching for Sprint data JSON conversion started. The default CSV separator is a comma for the delimit argument, no action taken.Traceback (most recent call last): File "C:\Users\dietz\AppData\Local\Programs\Python\Python312\Lib\site-packages\jiraone\reporting.py", line 7019, in json_field_builder field_builder( File "C:\Users\dietz\AppData\Local\Programs\Python\Python312\Lib\site-packages\jiraone\reporting.py", line 7012, in field_builder start_process() File "C:\Users\dietz\AppData\Local\Programs\Python\Python312\Lib\site-packages\jiraone\reporting.py", line 6629, in start_process if not obj_name.get("column_name").startswith( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'startswith' An error has occurred: 'NoneType' object has no attribute 'startswith'

Probably a customfield is causing problems? To limit the problem, I have tried to export only certain custom fields. However, this does not seem to be possible for JSON.

Is there a possibility to restrict the customfields for the JSON export?

I get everything exported cleanly via CSV.

BR
Marcel

@princenyeche princenyeche added enhancement New feature or request backlog An issue which will be reviewed at a later time labels Aug 24, 2024
@princenyeche princenyeche self-assigned this Aug 24, 2024
@princenyeche
Copy link
Owner

Hey @Grijak this is the same problem reported here #122. It is a customfield issue but I've still not gotten the time to look properly into it. I'll keep you updated on this.

princenyeche added a commit that referenced this issue Dec 30, 2024
Fixes to NoneType error for JSON export #122 #141
@princenyeche
Copy link
Owner

Hey @Grijak I've pushed a new version which could fix this issue. Try it out and let me know if it resolves this issue for you.

@princenyeche
Copy link
Owner

It seems the problem still exists, so I'll continue fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog An issue which will be reviewed at a later time enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants