How to add different description templates for different issue types using scriptrunner behaviours (Jira Cloud)
Hello All ! Recently I have been getting several requests from Jira project owners to setup default description templates for different issue types. In this blog post I will go over how to set up different description templates for different issue types using scriptrunner behaviour scripts for Jira cloud. Writing a behaviour script in Jira cloud is very different compared to writing a behaviour script in Jira data center. Main difference is the language to use. With Jira data center you are limited to using Groovy and with Jira cloud you have the option of using Javascript or TypeScript. Also, below is another major difference with regards to the field that the script is attached to. A fundamental difference between the ScriptRunner for Jira Server/DC and ScriptRunner for Jira Cloud behaviours feature is that the field selected is the trigger that causes the behaviour to run in ScriptRunner for Jira Server/DC. However, with ScriptRunner for Cloud, you choose an affected field first and...