title: How to create an issue with Jira CLI including an attachment?
body: <p>I'm creating a project template following this tutorial of Jira CLI: <a href="https://bobswift.atlassian.net/wiki/display/JCLI/How+to+create+projects+or+sets+of+issues+based+on+a+template" rel="nofollow">https://bobswift.atlassian.net/wiki/display/JCLI/How+to+create+projects+or+sets+of+issues+based+on+a+template</a></p>
  
  <p><strong>What I need is to create an issue and add an attachment to it.</strong></p>
  
  <p>Unfortunately, <code>createIssue</code> action doesn't has the parameter to add an attachment (<a href="https://bobswift.atlassian.net/wiki/display/JCLI/Reference" rel="nofollow">https://bobswift.atlassian.net/wiki/display/JCLI/Reference</a>).</p>
  
  <p>Although Jira CLI has an action called <code>addAttachment</code> which let you add a file to a issue which you already know the id, I don't have in advance my issue key.</p>
  
  <p>Is there a way to create an issue and add an attachment to it, using in both case Jira CLI?</p>