Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-34572

Datepicker in blueprint plugin wizard is not the same as in the documentation

      A customer was developing a blueprint plugin using our API and discovered that the UI for datepicker isn't the same as in the documentation.

      The AUI code for datepicker which can be found here.

      AUI datepicker documentation UI is as below.

      AUI when utilizing it for development is as below.

      This UI inconsistencies have been verified by our developer.

      Workaround given from developer for datepicker:

      • Insert
          <dependency>com.atlassian.auiplugin:aui-date-picker</dependency>

        to

        <web-resource> 

        xml tag in atlassian-plugin.xml. The web-resource should look like:

           <web-resource key="simplebp-resources" name="simplebp Web Resources">
                <dependency>com.atlassian.auiplugin:ajs</dependency>
                <dependency>com.atlassian.auiplugin:aui-date-picker</dependency>
                <dependency>com.atlassian.confluence.plugins.confluence-create-content-plugin:resources</dependency>
               ...
        
      • In simplebp.css, add
        .aui-datepicker-dialog {
            /* Move this over usual dialog */
            z-index: 5000;
        }
        
      • In simplebp.js, remove
        $('#myduedate').datepicker({
            dateFormat : "yy-mm-dd"
        });
        
      • If you want to change the date format, you should add it to datePicker (capital P, datepicker is jQuery, not AUI) function. For example:
        AJS.$('#myduedate').datePicker({
               dateFormat: "yy/mm/dd",
               'overrideBrowserDefault': true
        });
        

        1. datepicker_documentation.jpg
          datepicker_documentation.jpg
          38 kB
        2. datepicker.jpg
          datepicker.jpg
          20 kB

          Form Name

            [CONFSERVER-34572] Datepicker in blueprint plugin wizard is not the same as in the documentation

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2887031 ] New: CONFSERVER Bug Workflow v4 [ 2980804 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2800700 ] New: JAC Bug Workflow v3 [ 2887031 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Adam Barnes (Inactive) made changes -
            Resolution New: Timed out [ 10 ]
            Status Original: Gathering Impact [ 12072 ] New: Resolved [ 5 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2728037 ] New: JAC Bug Workflow v2 [ 2800700 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392957 ] New: JAC Bug Workflow [ 2728037 ]
            Status Original: Open [ 1 ] New: Gathering Impact [ 12072 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 2276233 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2392957 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2235149 ] New: Confluence Workflow - Public Facing - Restricted v5 [ 2276233 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2198295 ] New: Confluence Workflow - Public Facing - Restricted v5.1 - TEMP [ 2235149 ]
            Katherine Yabut made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 [ 1928250 ] New: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2198295 ]

              Unassigned Unassigned
              dooi Der Lun
              Affected customers:
              2 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: