How can I get JIRA screens in an iFrame

Hi

I want to get Jira issue screens like CommentAssignIssue!default.jspa (attachment screen).

In my external application we are able to create jira issues and doing transitions using rest api. While performing transitions we also want to show jira comment-assign-issue.jspa screen.

I want to show this screen in my external application by using iframe concept with the help of jquery or javascript. 

Thanks in advance for your help.

1 answer

1 vote

I do not believe you will be able to do this with Jira.  Jira can use an iframe to show it's own pages on the Jira site, but to place that iframe to show Jira pages on an external site will almost certain trigger a number of built in cross-site scripting protections in Jira.

Since cross-site forgery / scripting is a serious problem that all the major browsers have been working hard to address in the past few years, I think it's doubtful that this approach can be made to work with Jira.

Instead I would advise using REST API calls to gather the data you want to display in this external site.  These REST calls can still show data into another site without these kinds of XSS protections being violated.  The obvious problem here is how you format those REST results without using the default pages in Jira.  But the inclusion of just about any .jsp/.jspa file from the Jira site into an external site is probably going to give you problems that are not easy overcome by Jira or the browser accessing that resource.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

834 views 2 9
Read article

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