Forge derived jira:customField - How to populate existing issues?

I have a readonly jira:customField with a value function that derives its value from other fields on the issue.

When a user views an issue, the value function seems to get called, and the value is populated.

What is the correct way to populate all existing issues with the appropriate value without “visiting” each issue separately?

There may be many issues, possibly thousands, that currently do not have a value. What is the correct way to do this without being throttled or being a bad Forge citizen?

I have tried doing something with the app lifecycle installed/updated events, but it didn’t seem to get called (possibly an error on my part).

Any code examples would be very much appreciated.

Hi @dbush,

You can use the Async Events API to run jobs in the background, such as backfilling custom field data. There are some code examples on the page.

Please make sure you read through the Retry Events section on that page, as jobs may be rate-limited or otherwise fail.

With the app lifecycle events not working, could you provide me with your manifest file so I can take a look at the configuration?

Cheers,
Samuel