You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently utilizing the Jiraone REST API for extracting project history, which has been incredibly useful. However, I'm encountering a limitation with projects that contain extensive data. Specifically, I'm only able to retrieve history data up until last year, and not all details are being pulled.
Below is the Python script I'm using. I'm exploring whether there's a way to fetch the complete history, or, if data volume is an issue, to selectively specify certain fields within the history to retrieve all relevant changes. Alternatively, could I implement a date range to segment the output into manageable chunks? Another possibility I'm considering is whether there's an alternative to using PROJECT.change_log for this purpose.
I appreciate any guidance you can provide, as I'm relatively new to both Jira and Python.
fromjiraoneimportLOGIN, PROJECT# User credentials and Jira instance URLuser="my_email"password="my_Token"link="My_DC_URL"# Log into the Jira instanceLOGIN.api=FalseLOGIN(user=user, password=password, url=link)
# Main executionif__name__=='__main__':
# the output of the file would be relative to the directory where this python file is executedjql="issuekey in (ID-54145)"# A valid JQL queryPROJECT.change_log(jql=jql)
Thanksforyourassistance,
Aamir
The text was updated successfully, but these errors were encountered:
If you're not getting all the data, it depends on what level of access you have to the project. The method uses JQL, so if no errors are being returned to you, it is safe to assume that, the data gotten is what it could fetch from the search or the entire data contained available to your permission. The change_log method will pull out the history synchronously from your Jira site but it can have performance issues if the data being pulled is a lot. You might want to try the asynchronous method async_change_log to see if there's any difference in the data pulled by both.
This method allows multiple extraction quickly and should extract everything. When using JQL, you can specify a date range as that's JQL's ability to filter your search criteria. I suggest using that if you want to limit the search range. If both are the same, then you might want to check how many issues are actually returned based on your JQL or if those issues actually have historical content.
Hello,
I am currently utilizing the Jiraone REST API for extracting project history, which has been incredibly useful. However, I'm encountering a limitation with projects that contain extensive data. Specifically, I'm only able to retrieve history data up until last year, and not all details are being pulled.
Below is the Python script I'm using. I'm exploring whether there's a way to fetch the complete history, or, if data volume is an issue, to selectively specify certain fields within the history to retrieve all relevant changes. Alternatively, could I implement a date range to segment the output into manageable chunks? Another possibility I'm considering is whether there's an alternative to using
PROJECT.change_log
for this purpose.I appreciate any guidance you can provide, as I'm relatively new to both Jira and Python.
The text was updated successfully, but these errors were encountered: