Dear Jira Community,
I hope this message finds you well. I am currently facing a challenge in extracting data from Jira using its REST API, specifically related to custom fields.
The situation involves two custom fields, which I'll refer to as "year" and "team." The complication arises as the "team" field is only visible when a specific value is set in the "year" field. To elaborate, I can retrieve all available values for "year" and "team" separately using direct requests. For instance, I can obtain all teams associated with a particular year with a command like:
curl -H "Content-Type: application/json" -H "Host: jira.b.ee" https://jira.b.de/rest/api/2/issue/createmeta/Event/issuetypes/11300 | jq '.values[16].allowedValues[].value'
Or retrieve all available years with:
curl -H "Content-Type: application/json" -H "Host: jira.b.ee" https://jira.b.de/rest/api/2/issue/createmeta/Event/issuetypes/11300 | jq '.values[15].allowedValues[].value'
However, my goal is to process this data and store it in another MySQL database, specifically filtering and extracting teams that played in a certain year, for example, teams that played only in 1999.
I would greatly appreciate any guidance, suggestions, or sample scripts that could help me achieve this data extraction and processing task. If anyone has encountered a similar scenario or has expertise in utilizing Jira's REST API for such requirements, your insights would be invaluable.
Thank you in advance for your time and assistance. Your contributions are highly appreciated, and I look forward to learning from the community's expertise.
Best regards,
Vitalii