I am currently working on syncing issues between a source project and a target project. During the issue creation process in the target project, I need to include attachments in the description.
The current process requires multiple API calls to achieve this:
- Create the issue - Initial API call to create the target issue.
- Add the attachments - Another API call to upload the attachments and retrieve their
media-id
. - Update the issue - Final API call to update the description with the
media-id
of the uploaded attachments.
This approach requires multiple API calls, which increases complexity and latency.
Is there a way to simplify this process and handle attachments in the description in a single API call?
Ideally, I would like to create the issue with the description containing attachments directly, avoiding the need to separately upload attachments and then update the issue.
Any guidance or best practices for handling this scenario efficiently would be greatly appreciated!