title: JIRA attachment with REST API
body: <p>I want to upload attachment while creating JIRA ticket, I tried the format below but its not working with syntax error given for the file. Do you have any idea how to create this in a json file ?</p>
  
  <pre><code>    data = {
          "fields": {
              "project": {
                  "key": project
              },
              "attachments" : [
                  "file": "C:\data.txt"
                  ],
              "summary": task_summary,
              "issuetype": {
                  "name": "Task"
              }
          }
      }
  </code></pre>