Get 'Filtered' Issue Field Options: Jira REST API

Hi,

I want to use the JIRA REST Call: ‘Get all issue field options’ (in Rest Calls), but instead of delivering ALL the options of a custom field, I want to receive only a smaller portion. The setting of this portion would be based on the properties object that is indexed to each option (see this).

Currently I get all options with: ‘GET /rest/api/2/field/{fieldKey}/option’. Is there an alternative to this call with more Query Parameters?

Ideal Example: Having a custom field called “PedroField” with 3 options (‘A’, ‘B’ and ‘C’).

* Option ‘A’ has a JSON object attached: {“var”: “Green”}
* Option ‘B’ has a JSON object attached: {“var”: “Green”}
* Option ‘C’ has a JSON object attached: {“var”: “Red”}

I want to be able to make a REST call where I could ask for the options that have in its JSON, “var”: “Green”, thus responding to me only the options ‘A’ and ‘B’.

Thank you :no_mouth: