Hello, I wish to upload several files into mutiple Jira issues.
Starting with one: I have followed this procedure https://confluence.atlassian.com/jirakb/how-to-add-an-attachment-to-a-jira-issue-using-rest-api-699957734.html and the more complete one https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-attachments/#api-rest-api-3-issue-issueidorkey-attachments-post
But those doe not show how to mention several files into the "files" dict.
I am working with Python and the provided snipped and tried:
files = {
'file' : [
("text1.txt", open("text1.txt","rb"), "application-type"),
("text2.txt", open("text2.txt","rb"), "application-type")
]
}As well as:
files = {
'file1' : ("text1.txt", open("text1.txt","rb"), "application-type"),
'file2' : ("text2.txt", open("text2.txt","rb"), "application-type")
}But none of those work.
Is there a way to achieve this. I have many files to upload, is the only way to perform this to actually do one api call per file or can we bulk upload them into a single issue?