We have two ways to set a default template in the “Description” system field inside the Jira tickets. One way is using the famous plugin Adaptavist ScriptRunner “Behaviours”.

Just press the key “.” in your usual Jira screen. We now are in the navigation menu.

Captura de pantalla 2018-02-25 a las 22.12.11

We will go to “Behaviours” config page.

Captura de pantalla 2018-02-25 a las 22.12.56

Now we can create a simple Behaviour for the Description field restricted to selected Projects and selected Issue Types. To start, we put a Name to the new Behaviour.

Captura de pantalla 2018-02-25 a las 22.13.29

Captura de pantalla 2018-02-25 a las 22.13.46

Now we restrict the use of the script, and we add a new “Mapping” (of Projects and Issue Types to apply)

Captura de pantalla 2018-02-25 a las 22.14.00

Once restricted, we can configure the Fields. Just click on “Create Initialiser“.

Captura de pantalla 2018-02-25 a las 22.14.36

Now we leave the two first fields in blank, and we add the Script content.

Captura de pantalla 2018-02-25 a las 22.15.00

Script like this:

Captura de pantalla 2018-02-25 a las 22.17.26

Here the code:


def desc = getFieldById("description")

def defaultValue = """
Here the template...
""".replaceAll(/ /, '')

if (! underlyingIssue?.description) {
desc.setFormValue(defaultValue)
}

Now we will see when we raise new Jira tickets, the description will be filled with the default template content configured.

(Click here to see a little help of how to create your description Template using Wiki Renders)

If we want more, we can save more time and money using the plugin “Description Templates for Jira” and/or “Description Templates for Jira Cloud“. And it’s FREE!

mr.addon-39

Description Templates for JIRA

Posted by:.