Is there a way to get the ISSUE KEY within asset panel?

I have added assets to JIRA-CLOUD using the api,

/rest/assetapi/asset
Now, I have created a custom field named as Assets, where you can search and Link an Asset. After linking the asset, a page will be viewed below the asset as it has been associated with the particular asset by adding an assetPanel in the Atlassian JSON file.

“assetPanels”: [
{
“key”: “key”,
“url”: “/showAssetDetails?appKey={asset.appKey}&originId={asset.originId}&issueKey={issue.key}”,
“name”: {
“value”: “Asset panel”
}
}
],
Now, as I need the Issue ID for acquiring specific details about the asset which has already been stored with the issue properties.

But, I’m not able to get the ISSUE KEY from the URL, therefore I’m not able to get the issue key inside the page associated to the asset!

Is there a way to get the ISSUE KEY from within the page associated with the asset that linked?

Hi @BharathKumar,

Can you clarify what you mean by “I’m not able to get the ISSUE KEY from the URL”. What value are you seeing for your issueKey query parameter?

There is a front end context API that can be used to retrieve context, but I’m not sure if it is available within the assets panel. You could have a quick look.

Regards,
Dugald

Hi @dmorrow
The value is empty when I use the issueKey query parameter.

And, Yes! I’ve tried using the front end Context API to get issueKey but it didn’t work!

Thank you for your response!