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.
- {python_jira_plus-1.0.10/python_jira_plus.egg-info → python_jira_plus-1.0.12}/PKG-INFO +1 -1
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus/jira_plus.py +7 -10
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12/python_jira_plus.egg-info}/PKG-INFO +1 -1
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/setup.py +1 -1
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/LICENSE +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/MANIFEST.in +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/README.md +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/pyproject.toml +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus/__init__.py +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus/describe_allowed_value.py +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus.egg-info/SOURCES.txt +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus.egg-info/dependency_links.txt +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus.egg-info/requires.txt +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus.egg-info/top_level.txt +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/requirements.txt +0 -0
- {python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/setup.cfg +0 -0
|
@@ -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
|
-
|
|
317
|
-
|
|
318
|
-
|
|
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()}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus/describe_allowed_value.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_jira_plus-1.0.10 → python_jira_plus-1.0.12}/python_jira_plus.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|