Spaces:
Running
Running
| from jira import JIRA | |
| import sys | |
| # 1. Enter your details here | |
| EMAIL = "YOUR_EMAIL@example.com" | |
| TOKEN = "YOUR_ATLASSIAN_API_TOKEN" | |
| # 2. List ALL the URLs you suspect | |
| POSSIBLE_URLS = [ | |
| "https://mrdbo.atlassian.net", | |
| "https://courtbundle.atlassian.net", | |
| "https://openclaw.atlassian.net", | |
| # Add any others you see in your browser history | |
| ] | |
| print(f"🔍 Testing {len(POSSIBLE_URLS)} URLs for valid access...\n") | |
| for url in POSSIBLE_URLS: | |
| print(f"Testing: {url} ... ", end="") | |
| try: | |
| # Try to connect | |
| jira = JIRA(server=url, basic_auth=(EMAIL, TOKEN)) | |
| # Try to fetch your own user details to confirm auth | |
| myself = jira.myself() | |
| print("✅ SUCCESS!") | |
| print(f"\n🎉 FOUND IT! Your correct JIRA_URL is: {url}") | |
| print(f"User: {myself['displayName']}") | |
| print(f"Timezone: {myself['timeZone']}") | |
| break # Stop after finding the right one | |
| except Exception as e: | |
| print("❌ Failed.") | |
| print("\n------------------------------------------------") | |