Skip to content

Commit

Permalink
make reporter id an argument
Browse files Browse the repository at this point in the history
  • Loading branch information
rclarke0 committed Apr 1, 2024
1 parent 67df6e9 commit 5e3583d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions abr-testing/abr_testing/automation/jira_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def create_ticket(
summary: str,
description: str,
project_key: str,
reporter_id:str,
reporter_id: str,
issue_type: str,
priority: str,
components: list,
Expand All @@ -135,9 +135,7 @@ def create_ticket(
"project": {"id": "10273", "key": project_key},
"issuetype": {"name": issue_type},
"summary": summary,
"reporter": {
"id": reporter_id
},
"reporter": {"id": reporter_id},
"parent": {"key": robot},
"priority": {"name": priority},
"components": [{"name": component} for component in components],
Expand Down Expand Up @@ -228,8 +226,8 @@ def post_attachment_to_ticket(self, issue_id: str, attachment_path: str) -> None
"reporter_id",
metavar="REPORTER_ID",
type=str,
nargs=1,
help="JIRA Reporter ID."
nargs=1,
help="JIRA Reporter ID.",
)
# TODO: improve help comment on jira board id.
parser.add_argument(
Expand Down

0 comments on commit 5e3583d

Please sign in to comment.