Summary

      The following URI used to work to create a blog post with specified label name does not work anymore in newest Confluence version (5.8.x)

      /pages/createblogpost.action?spaceKey=<SpaceName>&labelsString=<LabelName>

      Steps to Reproduce

      1. Create a blog post by pasting the following URI:
        /pages/createblogpost.action?spaceKey=TEST&labelsString=test1,test2
        
        • The above URI should create a new blog post in a space with the space key TEST with the following labels : (test1,test2)

      Expected Results

      the blog post page is created with the correct labels (test1,test2) saved

      Actual Results

      Blog is created, and the label count is correctly specified. However, the labels are not saved.

      Workaround 1

      Note: this workaround only works when Collaborative Editing is disabled.

      1. Click cog icon > General Configuration > Custom HTML
      2. Click the Edit button
      3. Paste the following into the At end of the Body field:
        <script type="text/javascript">
          
        AJS.toInit(function ($) {
          
             //is it a create page action which is called??
            if( window.location.href.indexOf("createpage.action") > -1 || window.location.href.indexOf("createblogpost.action")) {
                  
                //if yes is there a label given as request parameter???
                var label = getUrlVars()["labels-string"];
                if(label) {
                      
                    //simply click the labeleditbutton
                    jQuery("#rte-button-labels").trigger("click");
                    //insert the label parameter value
                    jQuery("#labels-string").val(label);
                    //and close the label editor
                    jQuery("#add-labels-editor-button").trigger("click");
         
                    jQuery(".dialog-button-panel a.button-panel-cancel-link").trigger("click");
         
                }
            }
        });
          
        //this function is needed to get the parameters from the url
        function getUrlVars()
        {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for(var i = 0; i < hashes.length; i++)
            {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
          
        </script><br><br>
      4. Click Save
      5. Clear your browser cache

      You should now be able to create a new blog post and add labels using the following:

      pages/createblogpost.action?spaceKey=<spaceKey>&labels-string=label1,label2

      Note: the parameter is labels-string vs labelsString

      Workaround 2

      If you need a workaround that complies with Collaborative Editing, bitvoodoo did push out a third party fix that is available on the Marketplace: Label Fixer. This allows you to use the normal labelsString parameter to declare the labels in comma separated values.

      WARNING: Per our Support Offerings, HTML customizations are not supported by the Atlassian support team, but we will always do their best to assist. As with all customizations, we strongly recommended testing in a development environment, prior to implementing in production. Any customizations may need to be reapplied after upgrading.

      Notes

      1. Some customers use this parameter in order to avoid selecting different label name mistakenly.
      2. This method was available previously in 5.0.3
      3. Stopped working in the latest version, 5.8.x and 5.9.1

            [CONFSERVER-37848] 'labelsString' param doesn't works on 'createblogpost.action'

            Labeling blog posts automatically will really speed up our status updates and make it easier to do reporting. This is a small but important fix for us (not able to install the add-on due to security requirements). 

            Kim Wallace added a comment - Labeling blog posts automatically will really speed up our status updates and make it easier to do reporting. This is a small but important fix for us (not able to install the add-on due to security requirements). 

            Communardo Switzerland AG added a comment - That would be this one: https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.label-fixer Cheers, bitvoodoo

            Hi Jason, have you got a solution for your problem in the meantime? We have the same problem with confluence 6.1. What plugin is discussed here to possibly solve this?
            Thanx, Heiko Seitz

            Heiko Seitz added a comment - Hi Jason, have you got a solution for your problem in the meantime? We have the same problem with confluence 6.1. What plugin is discussed here to possibly solve this? Thanx, Heiko Seitz

            Hi Jason 

            We will contact you in our support portal, in your created ticket. You don't need to install the custom HTML - just install the add-on. 

            Cheers

            bitvoodoo

            Communardo Switzerland AG added a comment - Hi Jason  We will contact you in our support portal, in your created ticket. You don't need to install the custom HTML - just install the add-on.  Cheers bitvoodoo

            Just updated confluence to version 6.1 but still with the same issue.

            This is the URL i am using: http://10.20.140.76:8090/pages/createblogpost.action?spaceKey=mtTA&labelsString=jobpost 

            No labels are set when i work on the blog post, not even after saving the post.

            Do I still need to add the Custom HTML?

            Jason Galea added a comment - Just updated confluence to version 6.1 but still with the same issue. This is the URL i am using: http://10.20.140.76:8090/pages/createblogpost.action?spaceKey=mtTA&labelsString=jobpost   No labels are set when i work on the blog post, not even after saving the post. Do I still need to add the Custom HTML?

            Roman Joss added a comment -

            We have tested the bitvoodoo-plugin on Version 6.1 and it work perfectly.

            Roman Joss added a comment - We have tested the bitvoodoo-plugin on Version 6.1 and it work perfectly.

            Does the plugin work on Confluence server 6.0.7?

            Jason Galea added a comment - Does the plugin work on Confluence server 6.0.7?

            This bug is open for more than 12 months. Guys, really?

            Radek Antoniuk added a comment - This bug is open for more than 12 months. Guys, really?

            Thank you Oli but we are using the cloud version of Confluence, so if I am not mistaken plugins are not an option.

            Deleted Account (Inactive) added a comment - Thank you Oli but we are using the cloud version of Confluence, so if I am not mistaken plugins are not an option.

            Hi Maximillian and Jens

            I hope you saw the workaround here:

            https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.label-fixer/server/overview

            Cheers
            Oli

            Communardo Switzerland AG added a comment - Hi Maximillian and Jens I hope you saw the workaround here: https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.label-fixer/server/overview Cheers Oli

              Unassigned Unassigned
              mnakagawa Mai Nakagawa (Inactive)
              Affected customers:
              79 This affects my team
              Watchers:
              67 Start watching this issue

                Created:
                Updated: