I have already created a forloop for create jira issues in bulk. However, I need to be able to attach relevant pdf files to those issues.
Here is an example of my current code for just 1 jira issue created with python.
jira_connection = JIRA(
basic_auth=('myemail@xxx.is', API),
server = "https://xxx.atlassian.net",
)
issue_dict = {
'project': {'key': 'AAA'},
'summary': 'Testing', #The name of the jira issue
'description': 'Testing',
'issuetype': {'name': 'Request'}
}
How do I add the pdf file as an attachment to this current jira issue?