Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Here is how you can set the default values on create screen for a specifc project:

Code Block
titleinit.sil
lfInstantHook({"projectissueType", "issueTypeproject"}, "hook.sil");
lfWatch("issueType", {"issueType", "project"}, "hook.sil");
Code Block
titlehook.sil
if(argv["screen"] == "create" && argv["project"] == "DEMO" && argv["issueType"] == "Bug") {
   //on Create Issue screen
	lfSet("description", "What's Happening: \n" +
                         "What Should be Happening: \n" +
                         "Where it's Found: \n" + 
                         "Steps to Reproduce: ");
    lfSet("components", {"jjupin", "dbcf"});
    lfSet("affectedVersions", {"1.0.1", "1.0.2"});
}