My final solution was to integrate quite a few suggestions.
First, I created a table that would contain all information needed for posting a ticket. I then populated that table with every ticket needing migration from Jira. This included two columns that contained the Halo ticket number, and a boolean on if it had comments added or not.
Using that table, I mapped out the Users, Agents, Client/Company, and status IDs.
After mapping, I built out the structure for Halo’s API, assigning the correct IDs dynamically. Once the table was populated, I set a schedule to run. It would pull the table, with conditions checking for a null ticket value, and a null comment value. If both of those matched, it needed processing still.
Two things here: You can set a limit on how many tickets are pulled from your table, and those tickets need to be grouped together. That information is drawn down the pipeline to a step that batches them. Depending on your setup, it may be between batches of 10 and 25, though could be as high as batches of 50. It requires experimentation on your part.
These are fed into a loop that will post each batch under a single API call. Important step here was to capture each Jira ticket number, and each Halo ticket number, so they can be updated in the table for the next step. After the table is updated, a Wait is put into place to avoid throttling and limits. The loop then processes the next batch.
A helpful note: If you pull in a large amount of tickets (Say around 800 or so), it could take close to an hour to actually push all those tickets in a run. I recommend taking in no more than 150 at a time, and having the workflow run every 20-30 minutes.
Also helpful: You might consider changing the posting User’s email temporarily, because even closed tickets will send them an email. This can add up fast. That or find a way to suppress all outbound emails temporarily.
After this, I created a sub workflow that runs in tandem with the main workflow. It is much simpler. This one is to build out the comments. I was never able to get the comments to post under the correct person’s name. This was some sort of Halo issue that could be due to configuration, but all the comments I posted were made by the API connector account. Keep that in mind, that you may need to have a user’s name added to each comment, so you can tell who said what.
Like before, you want to pull in the table. This time, I didn’t want to populate each comment into a table, so I made an HTTP Request to Jira, specifying only for comments to be retrieved. I once again batched each ticket with their associated comments. THIS IS IMPORTANT TO AVOID HITTING API RATE LIMITATIONS. Each 150 tickets I ran had an average over around 700+ comments combined. This causes you to quickly hit the limit.
Next, check if the comments are “empty”. If no comments are on the ticket, no need to post them, right? Just update the table in this case. If there ARE tickets, then you continue as normal.
After each comment gets posted, just update the boolean value in the table. Remember that you’ll need a Jira Key and a Halo Ticket ID to match against.
This was also set to a scheduler. Fiddle with the settings, but it is much faster than the tickets, so you could do 150-200 tickets per every 5 minutes and still likely be fine.