It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

Brad Albright Jul 21, 2016

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
Gregory Joseph Atlassian Team Jul 24, 2016

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.

Brad Albright Jul 26, 2016

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.

Brad Albright Jul 27, 2016

Apologies, it was a mistake on my part.

Brad Albright Sep 06, 2016

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!

Brad Albright Jul 25, 2016

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

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Next-gen

Introducing subtasks for breaking down work in next-gen projects

Teams break work down in order to help simplify complex tasks. This is often done iteratively, with tasks being broken down into smaller tasks and so on until the work is accurately captured in well-...

1,096 views 13 15
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you