Create an Issue with attachment in one transaction with jira rest api service

Hi Team,
so we are creating jira issues using rest api , i want to understand how we can upload an attachment while creating the issue itself using the rest api.

so the current approach that we have is we create the issue using rest api , the using the newly created issue we upload the attachment using the rest api only… what we want is at the time of creating the issue only we should be able to attach the attachment. please help me how we can achieve it

Hi @MichaelKpper
This is not how Jira works - it first creates the issue, and then adds attachments, even when you do it from the user interface. So your approach is the correct one.

thanks a lot for your answer