I would like to show on issue page information by external source, so I thought to build a very simple app to read the data.
The App is on the right panel and it show an “Open TESTAPP” link to display the data.
I don’t want the user to click to show the data, I want the the data is shown without clicking the “Open…” link.
My Json is:
{
"name": "Test App Status",
"description": "Lorem ipsum",
"key": "test-app-status",
"baseUrl": "https://mydomain.name",
"authentication": {
"type": "none"
},
"apiVersion": 1,
"modules": {
"webPanels": [
{
"key" : "test-status",
"name": {
"value": "TESTAPP"
},
"url": "/status.php?ik={issue.key}&ii={issue.id}",
"location": "atl.jira.view.issue.right.context",
"weight": 1
}
]
},
"apiMigrations": {
"gdpr": true
},
"scopes": ["READ"]
}
and my status.php is :
<?php
if (isset($_REQUEST['ik'])) {
$sIssueKey = $_REQUEST['ik'];
}
if (isset($_REQUEST['ii'])) {
$sIssueId = $_REQUEST['ii'];
}
?>
<!DOCTYPE html>
<html lang="en" ng-app>
<head>
<script type="text/javascript" src="all.js" async></script>
</head>
<body>
<p class="ac-content">
Issue Key: <?php echo $sIssueKey; ?><br />
Issue Id: <?php echo $sIssueId; ?>
</p>
</body>
</html>
How can I show the data without clicking the link of the webpanel?