The webitem documentation states that the context key page allows to
targets a Page module by specifying the Page’s module key as the URL
The page module defines jiraProjectPages as a page.
When I attempt to create a webitem link to a jiraProjectPage via a webitem I get redirected to what seems like a general page with a javascript error:
Uncaught ReferenceError: require is not defined
at link-overview-project-page?board.id=1&board.screen=work&board.type=kanban&board.mode=work:28
at link-overview-project-page?board.id=1&board.screen=work&board.type=kanban&board.mode=work:32
<div class="ap-container" id="ap-kilianB-pb__link-overview-project-page">
<div class="ap-content " id="embedded-kilianB-pb__link-overview-project-page"></div>
<script class="ap-iframe-body-script">
(function(){
var data = {
"addon_key":"kilianB-pb",
"uniqueKey":"kilianB-pb__link-overview-project-page",
"key":"link-overview-project-page",
"moduleType":"jiraProjectPages", "title":"Shared Board Links", "cp":"",
"general":"1",
"w":"",
"h":"",
"url":"https://....../linkOverview?projectKey=&projectId=&xdm_e=https%3A%2F%2Fobital.atlassian.net&xdm_c=channel-kilianB-pb__link-overview-project-page&cp=&xdm_deprecated_addon_key_do_not_use=kilianB-pb&lic=none&cv=1001.0.0-SNAPSHOT&jwt=........",
"contextJwt": "..........", "structuredContext": "{}",
"contentClassifier":"",
"productCtx":"{\"board.id\":\"1\",\"board.mode\":\"work\",\"board.screen\":\"work\",\"board.type\":\"kanban\"}",
"timeZone":"Europe/Berlin",
"origin":"......",
"hostOrigin":"https://obital.atlassian.net",
"sandbox":"allow-downloads allow-forms allow-modals allow-popups allow-scripts allow-same-origin allow-top-navigation-by-user-activation", "apiMigrations": {
"gdpr": true
}
};
if(window.AP && window.AP.subCreate) {
window._AP.appendConnectAddon(data);
} else {
require(['ac/create'], function(create){
create.appendConnectAddon(data);
});
}
}());
</script>
</div>
How can I link to a jiraProjectPage with webitems or is this a bug?