Hello,
our ACE app was recently approved to use new "Get user email" REST API. I made the following changes and tested locally, on my machine using credentials.json file to install the updated add-on on a Jira test instance:
1. Made sure the app key is the one the API was approved for
2. Added ACCESS_EMAIL_ADDRESSES scope
I tried to use the new API in two ways:
1. from the add-on front end code, using AP.require ['request']
When accessed this way I got error (approximate wording): "This endpoint can be accessed only by app not user".
2. I moved my code accessing the "Get user email" REST API to the back end and then got Forbidden (403)
Am I missing something that needs to be done for accessing the new API?
Do I see these errors because testing on local machine rather than installing add-on from the Marketplace? How can I verify access to "Get user email" REST API and my code works before deploying to production?
We user Jira Cloud REST API v2.
Thank you in advance.
Irena