Hello all,
We noticed today that context parameters in atlassian descriptor are empty, in our case it’s project id. Context parameters are not visible only in dialogs opened by AP.dialog.create method. We’ve been using this context parameter for months without issues. Here you can see how we use it:
{
"url": "/any-url?projectId={project.id}",
"options": {
"size": "large",
"header": {
"value": "Dialog title"
}
},
"key": "dialog-key"
},
It’s critical issue for us due to part of our clients can not use the main feature of application.
Moreover this issue does not appear on every Jira Cloud instance. We suppose the bug appears on instances where loading plugin changes was introduced. We guess because of new view (spinner).
We’ve examined this issue and notice that there are changes in iframe. Below you can see iframe’s (when context parameter is empty) property name content:
{"extension_id":"<EXT-ID>","api":{"_globals":{"request":{"args":["a","e"],"returnsPromise":false}},"messages":{"clear":{"args":["a"],"returnsPromise":false},"onClose":{"args":["a","c"],"returnsPromise":false},"generic":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"error":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"warning":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"success":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"info":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"hint":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}}},"flag":{"create":{"constructor":{"args":["a","b"],"returnsPromise":false},"close":{"args":[],"returnsPromise":false}}},"dialog":{"create":{"constructor":{"args":["a","c"],"returnsPromise":false},"_construct":{"args":[],"returnsPromise":false}},"close":{"args":["a","c"],"returnsPromise":false},"getCustomData":{"args":["a"],"returnsPromise":false},"getButton":{"constructor":{"args":["a","c"],"returnsPromise":false},"enable":{"args":[],"returnsPromise":false},"disable":{"args":[],"returnsPromise":false},"toggle":{"args":[],"returnsPromise":false},"isEnabled":{"args":["a"],"returnsPromise":false},"trigger":{"args":["a"],"returnsPromise":false},"hide":{"args":[],"returnsPromise":false},"show":{"args":[],"returnsPromise":false},"isHidden":{"args":["a"],"returnsPromise":false}},"createButton":{"constructor":{"args":["a","c"],"returnsPromise":false}}},"inlineDialog":{"hide":{"args":["a"],"returnsPromise":false}},"env":{"getLocation":{"args":["a"],"returnsPromise":false},"resize":{"args":["a","c","b"],"returnsPromise":false},"sizeToParent":{"args":[],"returnsPromise":false},"hideFooter":{"args":["a"],"returnsPromise":false}},"events":{"emit":{"args":["a"],"returnsPromise":false},"emitPublic":{"args":["a"],"returnsPromise":false}},"_analytics":{"trackDeprecatedMethodUsed":{"args":["a","c"],"returnsPromise":false}},"scrollPosition":{"getPosition":{"args":["a"],"returnsPromise":false},"setVerticalPosition":{"args":["a","c"],"returnsPromise":false}},"dropdown":{"create":{"args":["a","c"],"returnsPromise":false},"showAt":{"args":["a","c","b","d"],"returnsPromise":false},"hide":{"args":["a"],"returnsPromise":false},"itemDisable":{"args":["a","c"],"returnsPromise":false},"itemEnable":{"args":["a","c"],"returnsPromise":false}},"cookie":{"save":{"args":["a","d","e"],"returnsPromise":false},"read":{"args":["a","d"],"returnsPromise":false},"erase":{"args":["a"],"returnsPromise":false}},"history":{"_registerWindowListeners":{"args":[],"returnsPromise":false},"back":{"args":["a"],"returnsPromise":false},"forward":{"args":["a"],"returnsPromise":false},"go":{"args":["a"],"returnsPromise":false},"getState":{"args":["a","g"],"returnsPromise":false},"pushState":{"args":["a","g"],"returnsPromise":false},"replaceState":{"args":["a","g"],"returnsPromise":false}},"navigator":{"getLocation":{"args":["a"],"returnsPromise":false},"go":{"args":["a","b","c"],"returnsPromise":false},"reload":{"args":[],"returnsPromise":false}},"user":{"getUser":{"args":["a"],"returnsPromise":false},"getCurrentUser":{"args":["a"],"returnsPromise":false},"getTimeZone":{"args":["a"],"returnsPromise":false},"getLocale":{"args":["a"],"returnsPromise":false}},"context":{"getToken":{"args":["a"],"returnsPromise":true},"getContext":{"args":["a"],"returnsPromise":true}},"jira":{"refreshIssuePage":{"args":[],"returnsPromise":false},"updateIssueGlance":{"args":["a","b"],"returnsPromise":false},"getWorkflowConfiguration":{"args":["b"],"returnsPromise":false},"_submitWorkflowConfigurationResponse":{"args":["a","c"],"returnsPromise":false},"isDashboardItemEditable":{"args":["b"],"returnsPromise":false},"openCreateIssueDialog":{"args":["e","b"],"returnsPromise":false},"setDashboardItemTitle":{"args":["b","c"],"returnsPromise":false},"openDatePicker":{"args":["a","c"],"returnsPromise":false},"initJQLEditor":{"args":[],"returnsPromise":false},"showJQLEditor":{"args":["a","d"],"returnsPromise":false}},"dropdownList":{"create":{"constructor":{"args":["a"],"returnsPromise":false},"showAt":{"args":["a","b","l"],"returnsPromise":false},"setItems":{"args":["a","b"],"returnsPromise":false},"hide":{"args":[],"returnsPromise":false},"moveUp":{"args":[],"returnsPromise":false},"moveDown":{"args":[],"returnsPromise":false},"query":{"args":["a"],"returnsPromise":false},"select":{"args":[],"returnsPromise":false},"isVisible":{"args":["a"],"returnsPromise":false},"getSelected":{"args":["a"],"returnsPromise":false},"onHide":{"args":[],"returnsPromise":false},"onSelect":{"args":[],"returnsPromise":false}}}},"origin":"<URL>","options":{"customData":{"templateType":"CREATE","projId":"10002"},"isDialog":true,"dialogId":"24472e14","preventDialogCloseOnEscape":true,"hideIframeUntilLoad":true,"history":{"state":""},"uniqueKey":"<DIALOG-KEY>","origin":"<URL>","hostOrigin":"<URL>","moduleType":"dialogs","isFullPage":false,"autoresize":true,"user":{"timeZone":"Europe/Warsaw"},"productContext":{"ac.projId":"10002","ac.templateType":"CREATE"},"structuredContext":{"license":{"active":true}},"contextJwt":"<JWT-HERE>","contextPath":"","width":"100%","height":"100%","targets":{"env":{"resize":"both"}},"contentClassifier":"","globalOptions":{"crev":"1.2.29"}}}
And here you can see also property name content, but from working good iframe (opened from view issue screen):
{"extension_id":"<EXT-ID>","api":{"_globals":{"request":{"args":["a","e"],"returnsPromise":false}},"messages":{"clear":{"args":["a"],"returnsPromise":false},"onClose":{"args":["a","c"],"returnsPromise":false},"generic":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"error":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"warning":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"success":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"info":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}},"hint":{"constructor":{"args":["c","b","d","e"],"returnsPromise":false}}},"flag":{"create":{"constructor":{"args":["a","b"],"returnsPromise":false},"close":{"args":[],"returnsPromise":false}}},"dialog":{"create":{"constructor":{"args":["a","c"],"returnsPromise":false}},"close":{"args":["a","c"],"returnsPromise":false},"getCustomData":{"args":["a"],"returnsPromise":false},"getButton":{"constructor":{"args":["a","c"],"returnsPromise":false},"enable":{"args":[],"returnsPromise":false},"disable":{"args":[],"returnsPromise":false},"toggle":{"args":[],"returnsPromise":false},"isEnabled":{"args":["a"],"returnsPromise":false},"trigger":{"args":["a"],"returnsPromise":false},"hide":{"args":[],"returnsPromise":false},"show":{"args":[],"returnsPromise":false},"isHidden":{"args":["a"],"returnsPromise":false}},"createButton":{"constructor":{"args":["a","c"],"returnsPromise":false}}},"inlineDialog":{"hide":{"args":["a"],"returnsPromise":false}},"env":{"getLocation":{"args":["a"],"returnsPromise":false},"resize":{"args":["a","c","b"],"returnsPromise":false},"sizeToParent":{"args":[],"returnsPromise":false},"hideFooter":{"args":["a"],"returnsPromise":false}},"events":{"emit":{"args":["a"],"returnsPromise":false},"emitPublic":{"args":["a"],"returnsPromise":false}},"_analytics":{"trackDeprecatedMethodUsed":{"args":["a","c"],"returnsPromise":false}},"scrollPosition":{"getPosition":{"args":["a"],"returnsPromise":false},"setVerticalPosition":{"args":["a","c"],"returnsPromise":false}},"dropdown":{"create":{"args":["a","c"],"returnsPromise":false},"showAt":{"args":["a","c","b","d"],"returnsPromise":false},"hide":{"args":["a"],"returnsPromise":false},"itemDisable":{"args":["a","c"],"returnsPromise":false},"itemEnable":{"args":["a","c"],"returnsPromise":false}},"cookie":{"save":{"args":["a","d","e"],"returnsPromise":false},"read":{"args":["a","d"],"returnsPromise":false},"erase":{"args":["a"],"returnsPromise":false}},"history":{"_registerWindowListeners":{"args":[],"returnsPromise":false},"back":{"args":["a"],"returnsPromise":false},"forward":{"args":["a"],"returnsPromise":false},"go":{"args":["a"],"returnsPromise":false},"getState":{"args":["a","g"],"returnsPromise":false},"pushState":{"args":["a","g"],"returnsPromise":false},"replaceState":{"args":["a","g"],"returnsPromise":false}},"navigator":{"getLocation":{"args":["a"],"returnsPromise":false},"go":{"args":["a","b","c"],"returnsPromise":false},"reload":{"args":[],"returnsPromise":false}},"user":{"getUser":{"args":["a"],"returnsPromise":false},"getCurrentUser":{"args":["a"],"returnsPromise":false},"getTimeZone":{"args":["a"],"returnsPromise":false},"getLocale":{"args":["a"],"returnsPromise":false}},"context":{"getToken":{"args":["a"],"returnsPromise":true},"getContext":{"args":["a"],"returnsPromise":true}},"jira":{"refreshIssuePage":{"args":[],"returnsPromise":false},"updateIssueGlance":{"args":["a","b"],"returnsPromise":false},"getWorkflowConfiguration":{"args":["b"],"returnsPromise":false},"_submitWorkflowConfigurationResponse":{"args":["a","c"],"returnsPromise":false},"isDashboardItemEditable":{"args":["b"],"returnsPromise":false},"openCreateIssueDialog":{"args":["e","b"],"returnsPromise":false},"setDashboardItemTitle":{"args":["b","c"],"returnsPromise":false},"openDatePicker":{"args":["a","c"],"returnsPromise":false},"initJQLEditor":{"args":[],"returnsPromise":false},"showJQLEditor":{"args":["a","d"],"returnsPromise":false}},"dropdownList":{"create":{"constructor":{"args":["a"],"returnsPromise":false},"showAt":{"args":["a","b","l"],"returnsPromise":false},"setItems":{"args":["a","b"],"returnsPromise":false},"hide":{"args":[],"returnsPromise":false},"moveUp":{"args":[],"returnsPromise":false},"moveDown":{"args":[],"returnsPromise":false},"query":{"args":["a"],"returnsPromise":false},"select":{"args":[],"returnsPromise":false},"isVisible":{"args":["a"],"returnsPromise":false},"getSelected":{"args":["a"],"returnsPromise":false},"onHide":{"args":[],"returnsPromise":false},"onSelect":{"args":[],"returnsPromise":false}}}},"origin":"<URL>","options":{"size":"large","chrome":false,"productContext":{"issue.key":"DDD-3","project.key":"DDD","project.id":"10002","issue.id":"10006","issuetype.id":"10003"},"structuredContext":{"license":{"active":true},"jira":{"issue":{"issuetype":{"id":"10003"},"key":"DDD-3","id":"10006"},"project":{"key":"DDD","id":"10002"}}},"contextJwt":"<JWT>","isDialog":true,"dialogId":"webitem-2d83c1cc","preventDialogCloseOnEscape":false,"hideIframeUntilLoad":true,"history":{"state":""},"uniqueKey":"<DIALOG-KEY>","origin":"<URL>","hostOrigin":"<URL>","moduleType":"dialogs","isFullPage":false,"autoresize":true,"user":{"timeZone":"Europe/Warsaw"},"contextPath":"","width":"100%","height":"100%","targets":{"env":{"resize":"both"}},"contentClassifier":"","globalOptions":{"crev":"1.2.29"}}}
Notice: unnecessary data was replaced, data is from the same dialog opened from differents context.
Any insights on what’s going on and confirmation if anyone also encountered such a problem will be appreciated.
Cheers,
Kamil Klimek.