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(
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 ):
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):
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" )
You can’t perform that action at this time.
0 commit comments