This guide shows how to retrieve various IDs associated with Jira entities using the Jira REST API.
APIs
Get Project: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/
Get Project Components: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-components/
Get Project Versions: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/
Get Organizations: https://developer.atlassian.com/cloud/jira/service-desk/rest/api-group-organization/