Forum Discussion

erutan's avatar
Occasional Contributor
2 years ago

Test Cases API - How to add a link to an issue on a different project?

I’m using the test cases endpoint API to create test cases, and I would like to link the test cases to issues that are on a different project. How can I do that? While path parameters include testC...
  • erutan's avatar
    2 years ago

    As no one from the community answered this, I thought it's best to add the official Support answer:


    Zephyr Scales REST API uses the JIRA IDs and does not accept the keys.


    One can make use of Atlassian's Cloud REST API to obtain the IDs by using Jira keys.

    See the following documentation


    Then it's possible to use the Create issue links endpoint to create a link between a test case and a Jira issue of any project.

    See screenshot for example.


    So basically a script is needed if anyone wants to automate this, get IDs out of the issue key, then use the Create Issue Link endpoint to create the link between the test and the issue.