有人可以分享允许我更新给定版本的测试周期的步骤和代码吗?我可以用它来更新 Ad Hoc 的测试结果,但这不是我想要的。这是我所拥有的:
// 1. Get IssueId via "jira/rest/api/2/issue/" + issueKey
// 2. Get VersionId via "jira/rest/api/2/project/" + projectId + "/versions"
// 3. Get ProjectId via "jira/rest/api/2/project"
// 4. Create ExecutionId via "jira/rest/zapi/latest/execution", with issueId, projectId in header
// 5. Execute execution via "jira/rest/zapi/latest/execution" + executionId + "/execution" , with body containing status = 1 or 2
我有 VersionId,但我把它放在哪里?我需要获取 TestCycle Id,但我不知道在哪里获取它,一旦我得到它,我应该把它放在哪里?