Zephyr Cloud API - automated creation of execution
Dear Community, I'm new to Zephyr cloud so pardon is the issue seems obvious to you. I've been using the ZAPI to certain endpoints as described in the documentation so far successfully but encountered a problem with some. A most import feature we would like to implement is automated creation/update of test execution, not by a test manager, but ourselves using the code itself at the SetUp/TearDown stages of the test. For this end I've been using the "Create Execution" and "Update Execution" APIs. I was using them them same way I've been using the other endpoints and according to the documentation, but for the execution creation I have been receiving an error: Internal Server Error{"errorType":"ERROR","clientMessage":"We encountered some problems during processing this request. Please try again!","errorCode":104} Searching the web I've seen this error has risen more than a couple of times and probably having something to do with the JWT generation but I'm not certain of that as i've followed the instruction for JWT generation to the letter. the URL for request (GET): https://prod-api.zephyr4jiracloud.com/connect/public/rest/api/1.0/execution request headers: { "Authorization": "JWT eyJ0...Xu0I", "Content-Type": "application/json", "zapiAccessKey": <Zephyr access key> } request body (json): {"status": {"id": 1}, "projectId": <project_id>, "issueId": <issue_id>, "versionId": <version_id>} having said that, I must emphasize that the update execution API does indeed work when manually creating the execution using the UI and just updated the execution with the executionId. Sincerely hoping for some intake on that. edit: neglected to mention that trying to use the "try it now" console option from the official documentation with the example body and default headers, yields the exact same results - error 104 (https://zfjcloud.docs.apiary.io/#reference/execution/add-tests-to-folder/create-execution?console=1)Solved3.7KViews0likes6CommentsAPI Resource housing the `fileid` of attachments
Via the API where can one find the `fileid` for execution attachments? Currently, I am able to access the attachments via http://localhost:2990/jira/rest/zapi/latest/attachment/fileid/file which I access the `fileid` via Jira web app. But I have to manually find the `fileid` for each attachment. What I need to be able to accomplish is making a REST call that programmatically returns the `fileid` so that I can automate the attachment exporting. But I have yet to find the API resource that stores this information for extraction. More in-depth overview: I am building an automated process that iterates over the entire Jira space, exports the execution attachments and stores them for later processing. Resources & Versions Jira Server 8.13.1 Zephyr for Jira 5.6.4 Python 3.7709Views0likes0Comments