python-jira-plus 1.0.10__tar.gz → 1.0.12__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.10
3
+ Version: 1.0.12
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
@@ -313,16 +313,9 @@ class JiraPlus:
313
313
  issue_fields = issue_fields | custom_fields
314
314
  self.validate_fields(project_key=project_key, issue_type=issue_type, fields=issue_fields)
315
315
 
316
- try:
317
- issue = self.jira_client.create_issue(fields=issue_fields)
318
- self.logger.info(f"Issue {issue.key} created successfully.")
319
- return issue
320
- except JIRAError as err:
321
- self.logger.error(f"JIRAError while creating issue: {err.text}")
322
- return None
323
- except Exception as err:
324
- self.logger.exception(f"Unexpected error: {err}")
325
- return None
316
+ issue = self.jira_client.create_issue(fields=issue_fields)
317
+ self.logger.info(f"Issue {issue.key} created successfully.")
318
+ return issue
326
319
 
327
320
  def update_issue(
328
321
  self,
@@ -360,6 +353,10 @@ class JiraPlus:
360
353
  self.logger.exception(f"Unexpected error: {err}")
361
354
  return False
362
355
 
356
+ def add_comment(self, issue: str, comment: str) -> None:
357
+ self.jira_client.add_comment(issue=issue, body=comment)
358
+ self.logger.debug(f"Comment added to issue {issue} successfully.")
359
+
363
360
  def _get_available_link_types(self) -> set[str]:
364
361
  try:
365
362
  return {link_type.name for link_type in self.jira_client.issue_link_types()}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-jira-plus
3
- Version: 1.0.10
3
+ Version: 1.0.12
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.10'
3
+ package_version = '1.0.12'
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.'