brynq-sdk-jira 1.0.0__tar.gz → 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/PKG-INFO +1 -1
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk/jira/jira.py +16 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/PKG-INFO +1 -1
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/setup.py +1 -1
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk/jira/__init__.py +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk/jira/tempo.py +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/SOURCES.txt +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/dependency_links.txt +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/not-zip-safe +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/requires.txt +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/brynq_sdk_jira.egg-info/top_level.txt +0 -0
- {brynq_sdk_jira-1.0.0 → brynq_sdk_jira-1.1.0}/setup.cfg +0 -0
|
@@ -97,3 +97,19 @@ class Jira(BrynQ):
|
|
|
97
97
|
|
|
98
98
|
return df
|
|
99
99
|
|
|
100
|
+
def get_versions(self, project_key: str) -> pd.DataFrame:
|
|
101
|
+
"""
|
|
102
|
+
This method retrieves versions for a given project from Jira.
|
|
103
|
+
:param project_key: The key of the project for which versions are to be retrieved.
|
|
104
|
+
:return: A dataframe with the versions.
|
|
105
|
+
"""
|
|
106
|
+
url = f"{self.base_url}rest/api/latest/project/{project_key}/versions"
|
|
107
|
+
response = requests.get(url=url, headers=self.headers)
|
|
108
|
+
if response.status_code == 200:
|
|
109
|
+
response_json = response.json()
|
|
110
|
+
df = pd.json_normalize(response_json)
|
|
111
|
+
if self.debug:
|
|
112
|
+
print(f"Received {len(df)} versions for project {project_key}")
|
|
113
|
+
return df
|
|
114
|
+
else:
|
|
115
|
+
raise ConnectionError(f"Error getting versions from Jira with message: {response.status_code, response.text}")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|