File tree Expand file tree Collapse file tree 3 files changed +0
-23
lines changed
responses/jira/rest/api/2/issue/FOO-123/remotelink Expand file tree Collapse file tree 3 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -1776,7 +1776,6 @@ def create_or_update_issue_remote_links(
1776
1776
icon_url = None ,
1777
1777
icon_title = None ,
1778
1778
status_resolved = False ,
1779
- application : dict = {},
1780
1779
):
1781
1780
"""
1782
1781
Add Remote Link to Issue, update url if global_id is passed
@@ -1788,7 +1787,6 @@ def create_or_update_issue_remote_links(
1788
1787
:param icon_url: str, OPTIONAL: Link to a 16x16 icon representing the type of the object in the remote system
1789
1788
:param icon_title: str, OPTIONAL: Text for the tooltip of the main icon describing the type of the object in the remote system
1790
1789
:param status_resolved: bool, OPTIONAL: if set to True, Jira renders the link strikethrough
1791
- :param application: dict, OPTIONAL: Application description
1792
1790
"""
1793
1791
base_url = self .resource_url ("issue" )
1794
1792
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(
1804
1802
if icon_title :
1805
1803
icon_data ["title" ] = icon_title
1806
1804
data ["object" ]["icon" ] = icon_data
1807
- if application :
1808
- data ["application" ] = application
1809
1805
return self .post (url , data = data )
1810
1806
1811
1807
def get_issue_remote_link_by_id (self , issue_key , link_id ):
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -92,18 +92,3 @@ def test_delete_issue_property_not_found(self):
92
92
self .jira .get_issue_property ("FOO-123" , "NotFoundBar1" )
93
93
with self .assertRaises (HTTPError ):
94
94
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" )
You can’t perform that action at this time.
0 commit comments