Info | ||
---|---|---|
| ||
You will need the following JIRA plugin: JJupin v2.5.3 and above Level: BASIC |
The following problem can be solved by Live Fields, included in the JJupin plugin. Please also read the documentation regarding accessing the current screen with live fields.
Problem
The default values for fields in the create screen, can be changed by the user.
Solution
Here is how you can set the default values on create screen for a specifc project.
Let's consider we have a rule, by setting the description, components and affectedVersions on the create issue screen . This allows the reporter to set some fields when the issue is created.
Code Block | ||
---|---|---|
| ||
lfInstantHook({"issueType", "project"}, "hook.sil"); lfWatch("issueType", {"issueType", "project"}, "hook.sil"); |
Code Block | ||
---|---|---|
| ||
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"}); } |