Jira 8 Administration Cookbook(Third Edition)
上QQ阅读APP看书,第一时间看更新

How it works...

Our code is written in Groovy, which is very similar to Java, the technology used by Jira. We first try to get hold of the Description field in line #1, and, from line #3 to #20, we use wiki markup, the markup language used by Jira's out-of-the-box editor, to create your default value in the form of instructions. On line #18, we check whether the issue already has a description value set, such as user-entered content, and, if not, we will apply our default value on line #19.