With UIKit is easy to retrieve the productContext by using the UIKit useProductContext hook.
What alternatives do you provide when using CustomUI? I am especially interested in retrieving basic info such as issueKey, accountid so that I can use the REST Api.
@bjornbrynjar have a looks at Daniel’s comment here on how to return the context from a resolver function:
I was just wondering the same thing and I think there is currently no other way. Something like useProductContext for Custom UI would indeed be very convenient.