Skip to content

Commit 10d12b6

Browse files
authored
Revert "Add: Remote link: Application (#1429)" (#1447)
This reverts commit 4780acc.
1 parent 4780acc commit 10d12b6

File tree

3 files changed

+0
-23
lines changed

3 files changed

+0
-23
lines changed

atlassian/jira.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,6 @@ def create_or_update_issue_remote_links(
17761776
icon_url=None,
17771777
icon_title=None,
17781778
status_resolved=False,
1779-
application: dict = {},
17801779
):
17811780
"""
17821781
Add Remote Link to Issue, update url if global_id is passed
@@ -1788,7 +1787,6 @@ def create_or_update_issue_remote_links(
17881787
:param icon_url: str, OPTIONAL: Link to a 16x16 icon representing the type of the object in the remote system
17891788
:param icon_title: str, OPTIONAL: Text for the tooltip of the main icon describing the type of the object in the remote system
17901789
:param status_resolved: bool, OPTIONAL: if set to True, Jira renders the link strikethrough
1791-
:param application: dict, OPTIONAL: Application description
17921790
"""
17931791
base_url = self.resource_url("issue")
17941792
url = "{base_url}/{issue_key}/remotelink".format(base_url=base_url, issue_key=issue_key)
@@ -1804,8 +1802,6 @@ def create_or_update_issue_remote_links(
18041802
if icon_title:
18051803
icon_data["title"] = icon_title
18061804
data["object"]["icon"] = icon_data
1807-
if application:
1808-
data["application"] = application
18091805
return self.post(url, data=data)
18101806

18111807
def get_issue_remote_link_by_id(self, issue_key, link_id):

tests/responses/jira/rest/api/2/issue/FOO-123/remotelink/POST

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/test_jira.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,18 +92,3 @@ def test_delete_issue_property_not_found(self):
9292
self.jira.get_issue_property("FOO-123", "NotFoundBar1")
9393
with self.assertRaises(HTTPError):
9494
self.jira.get_issue_property("FOONotFound-123", "NotFoundBar1")
95-
96-
def test_post_issue_remotelink(self):
97-
"""Create a new Confluence remote link"""
98-
resp = self.jira.create_or_update_issue_remote_links(
99-
"FOO-123",
100-
"https://confluence.atlassian-python.atlassian.net/display/Test",
101-
"Unused link text",
102-
global_id="appId=00000000-0000-0000-0000-000000000000&pageId=0",
103-
application={
104-
"type": "com.atlassian.confluence",
105-
"name": "Confluence",
106-
},
107-
)
108-
self.assertEqual(resp["id"], "10000")
109-
self.assertEqual(resp["self"], "https://atlassian-python.atlassian.net/rest/api/2/issue/FOO-123/remotelink/10000")

0 commit comments

Comments
 (0)