Skip to content

Commit 3e78b46

Browse files
Update to remote-link title; use URL, set icon favicon url. (#207)
* Update to remote-link title; just use URL. * Updating to use new service API params. * Adding icon_title to remote_link creation in jira.
1 parent ec8109d commit 3e78b46

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

jbi/actions/default.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,13 @@ def create_and_link_issue( # pylint: disable=too-many-locals
273273
jira_key_in_response,
274274
extra=log_context.update(operation=Operation.LINK).dict(),
275275
)
276+
icon_url = f"{settings.bugzilla_base_url}/favicon.ico"
276277
jira_response = self.jira_client.create_or_update_issue_remote_links(
277278
issue_key=jira_key_in_response,
278279
link_url=bugzilla_url,
279-
title=f"Bugzilla Bug {bug_obj.id}",
280+
title=bugzilla_url,
281+
icon_url=icon_url,
282+
icon_title=icon_url,
280283
)
281284

282285
self.update_issue(payload, bug_obj, jira_key_in_response, is_new=True)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fastapi = "^0.79.0"
1111
pydantic = {version = "^1.9.2", extras = ["dotenv", "email"]}
1212
uvicorn = {extras = ["standard"], version = "^0.18.2"}
1313
python-bugzilla = "^3.2.0"
14-
atlassian-python-api = { git = "https://github.com/atlassian-api/atlassian-python-api.git", rev = "82293a2ac9bfa" }
14+
atlassian-python-api = { git = "https://github.com/atlassian-api/atlassian-python-api.git", rev = "4e8698863e4d2" }
1515
dockerflow = "2022.7.0"
1616
Jinja2 = "^3.1.2"
1717
pydantic-yaml = {extras = ["pyyaml","ruamel"], version = "^0.8.0"}

0 commit comments

Comments
 (0)