Could someone share the steps and code that would allow me to update a test cycle for a given release? I can get it to update the test results for Ad Hoc, but that is not what I want. Here is what I have:
// 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
I have VersionId, but where do I put it? I need to get TestCycle Id, but I cannot figure out where to get it, and once I get it, where do i put it?