Is there way to integrate appium with jira

if the test failed >> is there way to create ticket automatically with jira jira with attached video and description

https://www.google.com/search?q=jira+api+create+issue ->
first link: https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/
add attachment:
https://docs.atlassian.com/software/jira/docs/api/REST/8.19.1/ ->

Add attachment
POST /rest/issue/{issueIdOrKey}/attachments