@@ -1321,14 +1321,18 @@ def get_issue_remote_links(self, issue_key, global_id=None, internal_id=None):
1321
1321
url += "/" + internal_id
1322
1322
return self .get (url , params = params )
1323
1323
1324
- def create_or_update_issue_remote_links (self , issue_key , link_url , title , global_id = None , relationship = None ):
1324
+ def create_or_update_issue_remote_links (
1325
+ self , issue_key , link_url , title , global_id = None , relationship = None , icon_url = None , icon_title = None
1326
+ ):
1325
1327
"""
1326
1328
Add Remote Link to Issue, update url if global_id is passed
1327
1329
:param issue_key: str
1328
1330
:param link_url: str
1329
1331
:param title: str
1330
1332
:param global_id: str, OPTIONAL:
1331
1333
:param relationship: str, OPTIONAL: Default by built-in method: 'Web Link'
1334
+ :param icon_url: str, OPTIONAL: Link to a 16x16 icon representing the type of the object in the remote system
1335
+ :param icon_title: str, OPTIONAL: Text for the tooltip of the main icon describing the type of the object in the remote system
1332
1336
"""
1333
1337
base_url = self .resource_url ("issue" )
1334
1338
url = "{base_url}/{issue_key}/remotelink" .format (base_url = base_url , issue_key = issue_key )
@@ -1337,6 +1341,13 @@ def create_or_update_issue_remote_links(self, issue_key, link_url, title, global
1337
1341
data ["globalId" ] = global_id
1338
1342
if relationship :
1339
1343
data ["relationship" ] = relationship
1344
+ if icon_url or icon_title :
1345
+ icon_data = {}
1346
+ if icon_url :
1347
+ icon_data ["url16x16" ] = icon_url
1348
+ if icon_title :
1349
+ icon_data ["title" ] = icon_title
1350
+ data ["icon" ] = icon_data
1340
1351
return self .post (url , data = data )
1341
1352
1342
1353
def get_issue_remote_link_by_id (self , issue_key , link_id ):
0 commit comments