Skip to content

Commit

Permalink
fixed jira ticket url
Browse files Browse the repository at this point in the history
  • Loading branch information
rclarke0 committed Apr 4, 2024
1 parent 7b72116 commit a48be01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions abr-testing/abr_testing/automation/jira_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def issues_on_board(self, board_id: str) -> List[str]:
def open_issue(self, issue_key: str) -> None:
"""Open issue on web browser."""
url = f"{self.url}/browse/{issue_key}"
print(f"Opening at {url}.")
webbrowser.open(url)

def create_ticket(
Expand Down
3 changes: 1 addition & 2 deletions abr-testing/abr_testing/data_collection/abr_robot_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ def get_error_info_from_robot(
project_key = "RABR"
parent_key = project_key + "-" + robot[-1]
issues_ids = ticket.issues_on_board(board_id)
print(issues_ids)
issue_url, issue_key = ticket.create_ticket(
summary,
whole_description_str,
Expand All @@ -163,6 +162,6 @@ def get_error_info_from_robot(
affects_version,
parent_key,
)
ticket.open_issue(issue_url)
ticket.open_issue(issue_key)
ticket.post_attachment_to_ticket(issue_key, saved_file_path)
ticket.post_attachment_to_ticket(issue_key, saved_file_path_calibration)

0 comments on commit a48be01

Please sign in to comment.