Use JIRA Filter on an external html page

Martin Müller February 26, 2020

Hello,

 

is it possible to use an JIRA Filter on an external html page?

 

i tried 

 

<iframe src="https://xxxxcom/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+=+INFO+AND+resolution+=+Unresolved+ORDER+BY+priority+DESC,+updated+DESC&tempMax=1000&runQuery=true" height="500px" width="1500px"/>

 

When only using the link and being authed before (still logged in) i get the filter working.

Without being logged in, it doesnt work, we use kantega sso, so it could be possible to be authed while the iframe is loading? How do i submit the log-in credentials?

 

Did anyone ever get a filter of jira core working on an external html page? 

 

Best Regards

 

Martin

1 answer

1 vote
Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 15, 2020

Hi Martin,

you need a valid login session which is the case, like you said, when you are logged in and then using the link.

Even if it would be possible to authenticate via using credentials in the HTML page I'd recommend not to do so. It could be risky from a security point of view.
An alternative, probably not the best one, would be to share the filter in a way unauthenticated access can be done (https://confluence.atlassian.com/adminjiraserver/managing-shared-filters-938847876.html). This, indeed, comes also with some drawbacks.

In cases like this my recommendation is to build a solution utilizing REST API (https://docs.atlassian.com/software/jira/docs/api/REST/8.7.1/).
This needs developer support on your end in most of the cases. Same time this provides a great flexibility. Displaying the filter results, received via REST API, in a HTML page is a common task nowadays.

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events