[Python] How can we list the test cycles present in a version of a project in Zephyr-JIRA...

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying to fetch test cycles from Zephyr for Jira Cloud using the public REST API, but I keep getting a 404 error. I have mentioned the code I am using and also have checked that uder the version I have cycles.

    import requests

    headers = {
    'Content-Type': 'text/plain',
    'Authorization': 'JWT <token>',
    'zapiAccessKey': '<access-key>'
    }

    project_id = "1234"
    version_id = "12345"

    url = f"https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/cycles/search?projectId={project_id}&versionId={version_id}"
    response = requests.get(url, headers=headers)

    if response.status_code == 200:
    print(response.json())
    else:
    print(f"Error {response.status_code}: {response.text}")

    Continue reading...

Compartilhe esta Página