-
Suggestion
-
Resolution: Unresolved
-
None
Can we please have a flag on the /field/search REST API that will get it to return all of the allowed values for those fields that have them.
At the moment one of our apps needs to get all available fields and all of their allowed values (for those that have them) and schema. It currently uses the createmeta REST API, with the fields option, to get them by calling the API for all projects. To do this, we get a list of all projects and then call get createmeta for up to 100 project ids as a time.
The current createmeta API is being removed and a new one put in its place. The new one requires one call per project to get the issue types and then one call per issue type to get the fields. This greatly increase the number of calls required and hence the reason we want an easier method to get the allowed values.
For example, if a customer has 1000 projects then we would need to do 10 calls for the old createmeta API. With the new setup, assuming there are on average 5 issue types per project, we would have to do 6000 REST API calls every time a page was loaded.
It would be good to just use the Field REST API but this currently doesn’t supply the same information as createmeta.