princenyeche/jiraone

Extraction Of Jira History Error

TristanSachinMunthree opened this issue · 9 comments

Extraction Of Jira History Error

Hi, @TristanSachinMunthree can you paste the error only as text instead of in the comment, much easier for me to read.

The error seems to be a JSON output in line 734, in changelog_search from the method. The value returned "None" and there's no way to parse None values. I will need to take this into account in the next version update. This should probably be the issue before the error being SFZA-7481. A workaround here would be to modify your JQL and change it to the below.
project in (SFZA) AND key != SFZA-7481 ORDER BY Rank DESC

Try the extraction again and let me know what happens.

Hi @TristanSachinMunthree
I suspect that there might be more of this error on the issues being extracted. So the workaround now, would be to exclude the issue as you see them but that might not be feasible if the project is quite vast. I will look at upgrading the package for that method hopefully over the weekend when I have more time.

Hi @TristanSachinMunthree
I have pushed an update #49 to jiraone, it is now v0.4.0. This should fix the problem you reported. Let me know if it still occurs.

Thanks for letting me know @TristanSachinMunthree. Can you make a GET call to this issue https://yourinstance.jira.com/rest/api/2/issue/SFZA-7572 from your browser following such URL (change to your hostname to get the details) and let me know what the return out is. I'm thinking it's an empty list but want to be sure. Please remove any sensitive data from the issue before posting here. Also, jiraone doesn't have any API method yet to connect to the activity stream if that's what you meant. Changelog API is only looking at issue histories.

@TristanSachinMunthree Thanks, I deleted the comment as it may contain sensitive info about your instance but I'll check further to see the cause of the problem.

@TristanSachinMunthree just pushed an update to the package. I believe v0.4.1 should be able to resolve the None value that keeps returning. Let me know. Also, for activity stream, it could be possible since a gadget can return the data but I haven't looked at such. I don't think there's even an api for it.

@TristanSachinMunthree corrected the key error. A new update has been pushed v0.4.2. It seems there might be something that is distinct on your instance, if I'm still not able to parse the JSON correctly.

@TristanSachinMunthree Glad to help. I'll close this issue.