Page decorator value for project settings page in JIRA

For JIRA the best source is to look is the source. I’ve tried to programatically extract it but you have to start heading into SiteMesh land and JIRA’s api didn’t expose it at the time. I’ll add it to my list to look at tomorrow.

But that said in JIRA’s source - take a look at jira-project/jira-components/jira-webapp-common/src/main/webapp/WEB-INF/decorator.xml - it will have a lot of the standard decorators that are available. Note the word standard… :frowning: In this case you want a bunch more data supplied.

In this case you want to look in jira-project/jira-components/jira-plugins/jira-project-config-plugin/src/main/resources/global/tab.vm:

    <meta name="decorator" content="admin"/>
    <meta name="projectKey" content="$project.key"/>
    <meta name="projectId" content="$project.id"/>
    <meta name="admin.active.tab" content="$linkId"/>
    <meta name="admin.active.section" content="atl.jira.proj.config"/>

Where $linkId is the linkId of your web-item.

2 Likes