Blueprint wizard JS is ignored

Gary Gindlin March 29, 2024

asc-monthly-project-reports-blueprint.js:

Confluence.Blueprint.setWizard('asc-project.plugins.confluence.asc-monthly-project-report-blueprint:create-by-asc-monthly-project-reports-blueprint-template', function(wizard)

{

    wizard.on('submit.pageId', function(e, state) {

        var vYear = state.pageData.vYear;

        if (!vYear){

            alert('Please provide a year value.');

            return false;

        }

});

 

atlassian-lugin.xml (blueprint element):

<blueprint key="asc-monthly-project-reports-blueprint" content-template-key="asc-monthly-project-reports-blueprint-template" index-key="asc-monthly-project-reports-blueprint-index" i18n-name-key="asc-monthly-project-reports.blueprint.name">

        <dialog-wizard key="asc-monthly-project-reports-blueprint-wizard">

            <dialog-page id="pageId"

                template-key="AscMonthlyProjectReportsPlugin.Blueprint.pageForm"

                title-key="asc-monthly-project-reports.blueprint.wizard.page.title"

                description-header-key="asc-monthly-project-reports.blueprint.wizard.page.desc.header"

                description-content-key="asc-monthly-project-reports.blueprint.wizard.page.desc.content" />

        </dialog-wizard>

    </blueprint>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events