How do you set a default value for the 'Component' field when creating a new issue using the OnDemand service?
Basically, I'm looking for the same functionality the 'Priority' setting offers. In the Create Issue window, the default priority is always set to 'Major' with an option to change to something else from the pull down list.
I would like the 'Component' field to be pre-populated with a default value with an option to change to something else as well.
Little tricky, but you will need to use the both line together, the first will truly select the components, the second will display it to user:
AJS.$("#components").val(11902); //11902 is id of "My Component" AJS.$("#components-textarea").val("My Component").blur();
You can't have a default value for components. Not without code or some javascript - which is not allowed in onDemand instance.
The best you can do is to make it mandatory so that people will be forced to select one!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.