Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how to link a issue to service portal?

YaliZhang October 12, 2022

I contact you because I have a question about gadget plugin.

I try to modify the filter-results-gadget for the dashboard. normally when we get a filter result, each issue have a issue link, this issue link is associated to the baseUrl: "__ATLASSIAN_BASE_URL__", the baseUrl should be the browse(https://SampleCompany.com/jira/browse).

Now we want to write a filter-results-gadget just for the service project, so we hope the issue link can be associated to the customer request("https://SampleCompany.com/jira/servicedesk/customer/portal").

Instead of using "__ATLASSIAN_BASE_URL__" I changed the linkStart to

var linkStart = "<a href=\"https://SampleCompany.com/jira/servicedesk/customer/portal" + args.issueTable.url + "\" target=\"_parent\" title=\"" + title + "\">";

but it doesn't work, the issue link still go to baseUrl. So I want to ask if I want to change the the issue link, what should I do?

1 answer

1 accepted

0 votes
Answer accepted
Brant Schroeder
Community Champion
October 13, 2022

@YaliZhang Welcome to the Atlassian community

The proper structure for the link would be the following: https://yourURL.com//servicedesk/customer/portal/6/IN-8

This is broken down into the following: https://Base_URL/servicedesk/customer/portal/Portal_ID/Issue_ID

You will have to use that format to access the issues via the portal. 

YaliZhang October 16, 2022

thanks a lot, it is really helpful!!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events