erutan
3 years agoOccasional Contributor
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 testCaseKey which has the project id in the test case key - PRJ-T123, the body parameters include only issueId which is integer.
I can’t use the full issue key which includes project, e.g. PRJ2-1234, and I can't find the issue ID in an issue details page.
From docs :
Create issue link
Creates a link between a test case and a Jira issue.
AUTHORIZATIONS:
AccessToken
PATH PARAMETERS
testCaseKey - required - string(.+-T[0-9]+) - The key of the test case. Test case keys are of the format [A-Z]+-T[0-9]+
REQUEST BODY SCHEMA: application/json
Issue Link Input
issueId - required - integer <int64> >= 1 - The issue ID