'How to expand all custom field in Jira API

when I make a call to JIRA API the response contain a large number of custom field with different IDs. It's possible resolve it directly into API response? I just try to call api on /rest/api/2/field to obtain all jira custom fields, but after that I should do a manual mapping script, it's soo annoing. There is a solution for this problem?

In the next time I need to export, for every issue, antire activity, attacchments and comments to store in external archive that can be consult in future.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source