Added Jira connectivity testing. Added alert management in AdminForm

This commit is contained in:
Kodjo Sossouvi
2025-07-22 18:23:01 +02:00
parent e793aeda95
commit 0d7b94a045
8 changed files with 154 additions and 51 deletions

View File

@@ -39,6 +39,18 @@ class Jira:
self.api_token = api_token
self.auth = HTTPBasicAuth(self.user_name, self.api_token)
def test(self):
url = f"{JIRA_ROOT}/myself"
response = requests.request(
"GET",
url,
headers=DEFAULT_HEADERS,
auth=self.auth
)
return response
def issue(self, issue_id: str) -> Expando:
"""
Retrieve an issue