How to add an attachment to an execution under test cycle using zapi rest api
How to add an attachment to an execution under test cycle using zapi rest api.
I intend to use python as a programming language.
I believe its by using this api-> http://localhost:2990/jira/rest/zapi/latest/attachment?entityId=&entityType=
But how do I pass the attachment file or attachment file link(url) to this api?
Solved! Go to Solution.
Found the solution:
Api is -> /rest/zapi/latest/attachment?entityId=12345&entityType=Execution
entityId is executionId.
Send the file as form-data, you will see this option in postman.
Below is the Python code if needed.