Hey! I am following the tutorial, but I got stuck in part 2. When I create a comment in an issue, and the app is supposed to show the number of comments in the console, the tunnel throws this error:
Sorted this first problem. I closed the tunnel, opened it again, refreshed the issue on my test site, and there I was asked to grant the required permissions.
I’ve checked and they appear correctly on my profile Atlassian account
But now I get this very pink text box when I refresh my Jira page
[comments] is undefined, clearly, because the API call did not work. But why? Anyone else had the same problem?
Hello,
This I also faced, and it was due to the issue having 0 comments (even when adding a comment this issue would appear).
Try to uninstall “forge uninstall”, “forge deploy” and re-installl “forge install” to wipe the app data. If the issue has a comment it should work, if not you can null-safe the Tutorial code (something like “if(comments !== ‘undefined’)”
Were you using “forge tunnel” to tunnel changes made to the app?