In the newest version (2.5.5.318) the Step Template Export button is missing from the top-right of the screen.
I’ve noticed it’s in the markup and if you remove the ng-hidden class in Firebug the link reappears and the functionality works.
I’m a full administrator to the system.
Hi Anthony,
Thanks for getting in touch! The export button showing or not is controlled by the “ActionTemplateCreate” permission.
To troubleshoot this could you try to log in to Octopus in a different browser just to eliminate the possibility of bad caching, and if that doesn’t work head on over to Configuration -> Teams -> Test permissions
and select your user that you are not seeing the export link for. Does it list ActionTemplateCreate as the first permission?
Let me know what you find.
Vanessa
Hi
I am and always have been in the Octopus Administrators role, that role has the ActionTemplateCreate assigned. I can create templates, I’m trying to export the one I created.
I can see the markup on the page, but the Angular definition is checking if I’m looking at something other than a template…
<button type="button" ng-show="action.ActionType == 'Octopus.Script' || action.ActionType == 'Octopus.Email'" class="btn btn-link ng-scope ng-hide" ng-click="export()">Export</button>
Anthony
Hi Anthony,
Sorry about the previous response we had a bit of a mis-communication regarding the words import and export and such over here.
Also the penny also dropped. We only allow exporting of created templates for email or PowerShell steps.
The reasoning behind it is NuGet Package steps have feed URLs or references to package repositories that might not be available elsewhere.
So in the end it was decided that only Email and PowerShell steps were safe to export.
Vanessa
Hi,
That made a lot of sense in 2.4 but we’re using the new capability to set the feed as a variable in the step template so we make sure this always exists on the other end (sort of).
Please can this logic be reviewed again as the scenarios are now more complex.
We’ve run it using the API for now.
Anthony
Hi Anthony,
You have convinced us. I have created a GitHub issue you can track here: https://github.com/OctopusDeploy/Issues/issues/1142
Cheers!
Vanessa