It is possible for P2 plugin to put content into customer request view in JIRA Service Desk?

I have developed a cloud plugin which has a panel in the request view of the customer portal in JIRA Service Desk (cloud). I am trying to do the same now in a P2 plugin for JIRA Service Desk Server. In the cloud plugin, I was able to create a panel using info from here:

https://developer.atlassian.com/jiracloud/jira-service-desk-modules-customer-portal-39988271.html#JIRAServiceDeskmodules-Customerportal-Requestviewpanel

 

The information in that link is specific to how to do it for the cloud, I cannot find a doc that has the same info for the server version. The server documentation for JIRA Service Desk doesn't mention UI integration much at all. I tried creating a <web-panel> in my atlassian-plugin.xml that uses location="serviceDeskPortalRequestViewPanel" but it didn't work.

 

Any pointers to the right direction would be appreciated, or if this is not possible (I would think it should be).

 

 

2 answers

1 accepted

2 votes
Answer accepted

Hey Brad,

This will be available in the upcoming 3.2 release. As you guessed, you'll be working with <web-item>s and <web-panel>s. The location for the web-panel you're looking for is servicedesk.portal.request.panels - we'll document other existing locations once the release goes out.

Thanks, I have downloaded the EAP of 3.2. Do you mind me also asking this: to have web resources included on this page (like css or js file for example) what context would I use? I read in other Atlassian answers to use "customerportal", but it doesn't seem to be working for me (files don't seem to get loaded from using browser dev tools) unless I am doing something wrong:

&lt;web-resource key="web-resources-customer-portal" name="Customer Portal Web Resources"&gt;
    &lt;dependency&gt;com.atlassian.auiplugin:ajs&lt;/dependency&gt;
    &lt;resource type="download" name="test.css" location="/css/test.css"/&gt;
    &lt;resource type="download" name="example.js" location="/js/example.js"/&gt;
    &lt;resource type="download" name="images/" location="/images"/&gt;
    &lt;context&gt;customerportal&lt;/context&gt;
  &lt;/web-resource&gt;

Thanks again!

 

Mina Samy Atlassian Team Jul 26, 2016

So adding JS and CSS resources on the page is only possible on Server. If you're on Server, yes "customerportal" should work. Are you sure your plugin is installed and enabled in "Manage Add-ons"? You might want to verify that those resources are indeed bundled in your plugin JAR as well.

Apologies, it was a mistake on my part.

Gregory or Mina,

Would you be so kind to clue me in on a similar question? I am also trying to integrate to the sub header panel in the customer portal. I correctly guessed the location of "servicedesk.portal.subheader", however I want to restrict which pages the add-on shows on. In the cloud docs it mentions there is a "pages" property where you can put a list of pages to restrict the visibility. However, for server I haven't stumbled upon how to do this after some trial and error. Can you tell me how to do this for server?

 

Thanks in advance.

Mina Samy Atlassian Team Sep 06, 2016

Hey Brad, I just answered your other question, but I'll leave this here too for anybody else: The dev docs are now on https://developer.atlassian.com/jiradev/jira-applications/jira-service-desk

1 vote
Mina Samy Atlassian Team Jul 24, 2016

Hi Brad, just confirming here too: this will be available in JSD server v3.2.0 (so next release), we will have a development doc for server as well!

Thanks Mina, sorry I should have checked the other site first. Thanks again!

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in United States

Confluence Security Advisory

Good morning Members, Not sure if you are aware. Please read the following: https://www.icloud.com/keynote/0RyJ4VEdNUpjDpGfMhfZx9fEg#Confluence_Security_Advisor More details: https://co...

43 views 1 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you