User export to CSV of your Atlassian system through a simple API call.
Change the values of JIRA_ENDPOINT_BASE
with your domain name.
In auth, change the values to your user account
and generate an API Token
.
The script run at 1k chunks due to API limitations.
Thanks to @alexandernst and @sinergiasincontrol