Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Remote Link but Not appearing when jira page opening within application name

Dilip Kumar Shrivastwa October 27, 2025

Hi,

I am creating remote link by this code or api , we can see that link created with help of postman api but when opening that jira issue in browser that is not coming:

def create_or_update_remote_link(issue_key, remote_link_url, remote_link_title):
   
    # Create globalId using issue_key and encoded remote_link_title
    global_id = f"{issue_key}:{remote_link_title}"

    jira_base_url = os.getenv('JIRA_REMOTE_URL')
    jira_icon = os.getenv('JIRA_URL_ICON')
    url = f"{jira_base_url}/{issue_key}/remotelink"

    # Prepare the request payload
    payload = {
        "application":{
                "name": "Success Pilot"
                },
            "globalId": global_id,
            "object": {
                "icon": {
                        "title": "Success Pilot",
                        "url16x16": jira_icon
                },
            "url": remote_link_url,
            "title": remote_link_title
        }
    }

    try:
        # Send the request to create or update the remote link
        response = requests.post(url, headers=headers, auth=auth, data=json.dumps(payload), verify=True)
        response.raise_for_status()  # Raise an error for non-200 responses

        # Parse and return the response
        response_data = response.json()
        return response_data.get("self")

    except requests.RequestException as e:
        error_logger.error(f"Error in making request to JIRA API Create or Update remote link: {e}")
       
        return None

1 answer

0 votes
Gor Greyan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2025

Hi @Dilip Kumar Shrivastwa

Welcome to the Atlassian Community!

Please try this one.

import os
import requests
from requests.auth import HTTPBasicAuth

def create_remote_link(issue_key, remote_link_url, remote_link_title):

jira_base = os.getenv("JIRA_BASE_URL") # https://yourcompany.atlassian.net
jira_user = os.getenv("JIRA_USER_EMAIL")
jira_token = os.getenv("JIRA_API_TOKEN")

url = f"{jira_base}/rest/api/3/issue/{issue_key}/remotelink"
auth = HTTPBasicAuth(jira_user, jira_token)

headers = {"Content-Type": "application/json"}

# Minimal required payload
payload = {
"object": {
"url": remote_link_url, # must be absolute (https://...)
"title": remote_link_title
}
}

response = requests.post(url, headers=headers, auth=auth, json=payload)

if response.status_code in (200, 201):
print("Remote link created successfully.")
print(response.json())
else:
print(f"Failed to create remote link: {response.status_code}")
print(response.text)

Dilip Kumar Shrivastwa October 27, 2025

Thanks for reply @Gor Greyan ,

But our requirement to show this link under application name "Success Pilot", the updated code you shared that is available at any place. It was working fine last 5 days back, but now its not available to see anyone. but with postman api able to see those links.

please suggest and guide 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events