How to get issue id with using Forge Custom UI?

@kchan Thanks for the information but I stuck at the fetch now.

Firstly I defined a function for the resolver with using @forge/api in “src/index.js” as you said.

resolver.define("apiFunction", ({}) => {
  fetch(
    'https://backend.heyadriver.com/api/Policies/PoliciesLis', {method: 'GET'}
  ).then(response => { 
    result = response.message; 
    return { example : result }; }); 
  }
);

Then, called the function in “static/hello-world/src/app.js”

invoke("apiFunction", {}).then((returnedData) => { console.log("Result = " + returnedData.example)})

But the result is always undefined. How could i handle this?

PS. I added the result json data below.

image