Hi all,
I have previously been experimenting with the new issue glance and raised some issues and ideas regarding the new Jira issue view that I believe disappeared in the discussion. So I would like to re-highlight them in this post.
-
Missing context parameters when a module is loaded from issue glance
When my issue glance opens a web panel is rendered that contains a button. When this button is clicked a dialog is opened using AP.dialog.create().
AP.dialog.create() references a general page module which has a URL with context parameters: /some/module/url?project.id={project.id}
Unfortunately the context parameter does not get resolved and as a result, the module fails to load.
Is this something Atlassian intends to fix? -
In this blog post about the new Jira issue view, there is a screenshot that shows an open glance.
The title next to the back button is the glance icon and label, however, in the implementation, it renders the glance name which would be āSupport appā in the example in the blog post. I think it makes a lot more sense to see the glance label because it describes the content shown in the open panel. This is not urgent but I couldnāt find an issue for this so I thought I will highlight it here again. If it is agreed that this is something that should be fixed I am happy to open an issue for it.
-
Regarding Glance Status: It would be nice to read the status value from an existing entity property. Here is an example app descriptor to illustrate what I mean:
"modules": {
"jiraEntityProperties": [
{
"name": {
"value" :"Object Links",
"i18n": "my.object.links"
},
"key": "object-links-property",
"entityType": "issue",
"keyConfigurations": [
{
"propertyKey": "my.object.links",
"extractions": [
{
"objectName": "count",
"type": "number",
"alias": "linkedObjectCount"
}
]
}
]
}
],
"jiraIssueGlances": [
{
"key": "issue-glance-key",
"status": {
"type": "badge",
"params": {
"entity": "issue",
"propertyKey": "my.object.links",
"objectName": "count"
}
},
"icon": {
"width": 24,
"height": 24,
"url": "/assets/img/logo.svg"
},
"content": {
"type": "label",
"label": {
"value": "Object links"
}
},
"target": {
"type": "web_panel",
"url": "/my/glance/panel"
},
"name": {
"value": "My Glance"
}
}
]
}
In my app, I store a count together with the data in an entity property. With the existing solution, I have to manage an additional entity property just to store the count for the glance UI. It would be nice to make Jira just read the value from an existing property, e.g. using a status property in the glance module:
"status": {
"type": "badge",
"params": {
"entity": "issue",
"propertyKey": "my.object.links",
"objectName": "count"
}
}
Would be interesting to hear your thoughts on this. The first point is actually quite important for my app. The second and third points are of less urgency.
Thanks!