I am trying to create a script plugin for our jira server to be able to deploy all of my scripted custom fields. I found the articles (part1 and part2) of Alexey Matveev and managed to deploy my first scripted fields using an UpgradeTask. Now I want to try to deploy a real-life version of one of my scripted fields which uses a custom template.
I found this question in which the answer of Thanos Batagiannis shows how to create a scripted field with the ScriptFieldCreationInfo.Builder.newBuilder() using the method setCustomTemplate(). Here the template is given as a string parameter.
I have several questions here: