Hi,
We have a few self made gadgets that we are using in our JIRA. The development of these are based on this guide: https://developer.atlassian.com/server/jira/platform/writing-gadgets-for-jira/.
We are now developing a new gadget where we might need to perform a rest api call inside a for loop to get more data about a certain user, or we might not. The data we are asking for might also be useful for the next user, so we do not want to go to the next loop iteration until we have received the data.
This would have been trivial to do with async await, but it's a bit harder to get working with promises. Is it possible to use async await in JIRA plugin gadgets?