Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Async await in JIRA Gadget

Marius Westgaard
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 3, 2019

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? 

0 answers

Suggest an answer

Log in or Sign up to answer