Hi. I am making app for jira cloud and have webItems block with this url parameter ‘url’ => ‘/projects/{project.key}?selectedItem=com.example.myaddon__connect-provided-link-to-panel’. It’s work on most projects type such as the kanban board or the scrum board and redirect on my page but does not work on service desk board. After click by my link on service desk board it’s only reload current page.
Hmm that should be working. However the URL may have changed from /projects/<projectkey> to /jira/servicedesk/project/<projectkey>. Would this impact your addon?
My app does not distinguish project types (Business/Software/ServiceDesk), so I think “/jira/servicedesk/project” may not work on Business/Software projects correctly.
Do you have any documentation or announcement about the JSD framework changed?
Could you please, share the JSON snippet you are using to declare the webItems module within the atlassian-connect.json file? That would help me to reproduce it on my own environment. Make sure that you don’t share anything private.
In addition, I would like to know if this feature used to work for you previously on Service Desk on your instance.
@hirota.takayuki, have you tried to use jiraProjectPages instead of webItems?
I don’t know when the webItem has broken, but I believe our app worked correctly previously (since 3 years ago).
Our team tried jiraProjectPages and confirmed it works, but I would like to know the JSD behaviour changes. I think the change of URL may impact customers and marketplace apps.
Sample snippet for webItems and webPanels is here:
Thanks for the details provided. I added a similar webItem on my local environment and it’s apparently working at my side. I noticed some blips where I had to click on the webItem again so the content could be rendered, but this might be just something related to my environment.
In your case you are referencing a webPanel from a webItem, right? I just tried with a webItem referencing a serviceDeskQueues. I’ll try with a webPanel too and I will let you know from my next findings.
Could you please, let me know more details about what’s the actual behaviour you are facing with your app? Does the panel just remains empty?
Yes, I’m referencing my webPanel page from my webItem in my case.
The webPanel page works correctly in Business/Software projects, but does not work in Service Desk classic projects. Issues or Queues page instead of our add-on page is displayed.
@hirota.takayuki and @otonomiz we have fixed the issue that we believe is impacting your addon. Please let us know if this is still an issue for you and we will follow up as soon as we can.
IIRC you should have an instance of JiraHelper in the context of the Atlassian-Plugin.xml file. This variable is named ‘helper’. Thus, you should be able to use$helper.request.contextPath in order to obtain the context path, if it exists.