hello, I’m able to add an attachment doing like this:
onst requestUrl = route`/rest/api/3/issue/${issueIdOrKey}/attachments`;
const response = await api.asApp().requestJira(requestUrl, {
method: 'POST',
headers: {
'X-Atlassian-Token': 'nocheck',
...form.getHeaders()
},
body: form.getBuffer()
});