I want to create multiple epics and for each of them a list of issues. I’ve found the /rest/api/3/issue/bulk call. The problem is that I can’t set the parent field because I don’t know the keys of the epics until they are generated. Is there a way to create and associated directly the issues to the newly created epics?
My understanding of the API is that you cannot retrieve the issue keys until they are created, that is correct. However, you can “predict” what keys will be created as they are always incremental from the last key number. So if your project ABC has issues up to ABC-10, you can predict the keys created will be ABC-11 up to however many you create (up to 50 per bulk call). The downside I can see here is that this would also not be a singular call as you would need to retrieve the existing keys anyway.