How to get the project Id on the custom project admin tab panel?

Hello,

I created a project admin tab panel and I need help on how to get the project Id. Since I am in a Iframe I have no way to get the url from the origin page or the attributes from the Iframe itself.

https://developer.atlassian.com/cloud/jira/platform/modules/project-admin-tab-panel/

@AchmedGurzhikhanow,

I’m not sure I understand. From your URL image, it looks like you are already asking Jira to send that as a context parameter. So what kind of code needs the parameter?

For simple, generic, browser JavaScript, I believe document.getElementById("iframe").src will have the parameters in the URL.

I already figured out the solution looking at jira github projects, I just needed to add it to my url as a variable in the atlassian-connect.json .

1 Like