There are some circumstances where it is useful to create new issues within the database, but to have these flagged as being in a draft mode.
In this mode, no checking for required fields will be made. Before saving the issue in a non-draft mode, the issue must be edited, and all the required fields must be completed.
To enable this feature, an entry within the UserJavaScript.js file must be made, as follows:
if (typeof(chkRqdFlds) != "undefined") chkRqdFlds = "NO";
This call should be placed within a function, and the function called from a custom Java method utilizing the setButtonDopeMap
method, adding a new button to the menubar on the add and edit screens, with a title of Save As Draft or similar, to invoke the JavaScript function.
Note that there are dangers to recognize. This practice allows issues which may not have required fields added to the database. Therefore it is recommended that you also add a Status of DRAFT to your system, and this is set at the same time that you call the function. Queries and reports may then filter out these issues.