Hi all!
I have a question related with Script Runner and how import values to a custom field from the result of a API REST endpoint.
For example, you have a custom field. The format of this custom field is a select where you can select one value, of a list of vaules. This values are imported from an API REST request. Then, you can select one of this values.
So, you have the field "My custom field" with the values: "Value 1", "Value 2" and "Value 3" that have been retrived by the endpoint:
http://myapi.com/myendpoint
Whose response is a JSON with the values {"Value 1", "Value 2", "Value 3"}
Then, you can select in this custom field the value, for example: "Value 1". And when the issue is saved, the value of "My custom field" is set to "Value 1".
Is this possible with Script Runner?
BTW, this could be done in an JIRA Cloud.