python-jira-plus 1.0.2__tar.gz → 1.0.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Home-page: https://github.com/aviz92/python-jira-plus
6
6
  Author: Avi Zaguri
@@ -341,6 +341,14 @@ class JiraPlus:
341
341
  self.logger.exception(f"Exception - Link between {issue_key} and {in_issue_key} was not created\n{err}")
342
342
  return False
343
343
 
344
+ def upload_attachment(self, issue_key: str, file_path: str) -> None:
345
+ try:
346
+ self.jira_client.add_attachment(issue=issue_key, attachment=file_path)
347
+ except JIRAError as err:
348
+ self.logger.exception(f"JIRAError - Attachment {file_path} was not uploaded to issue {issue_key}\n{err}")
349
+ except Exception as err:
350
+ self.logger.exception(f"Exception - Attachment {file_path} was not uploaded to issue {issue_key}\n{err}")
351
+
344
352
  def transition_issue(
345
353
  self,
346
354
  issue_key: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.
5
5
  Home-page: https://github.com/aviz92/python-jira-plus
6
6
  Author: Avi Zaguri
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '1.0.2'
3
+ package_version = '1.0.3'
4
4
 
5
5
  package_name = 'python-jira-plus'
6
6
  package_description = 'Enhanced Python client for JIRA with better error handling, pagination, and metadata validation.'