I have a ConfiForms Jira form field that is shown on the form when a certain selection is made from another dropdown. Else it is hidden. Hence this field cannot have the 'Required' checkbox selected. There is validation that will show a form error if the field is empty.
To select and submit a Jira issue;
- The user can input the Jira key e.g. ABCD-1234.
- The located Jira issue is shown under the textbox (issuekey, summary and status)
- The user clicks the issue to select it.
- The issue that is selected then appears in the textbox
- User submits the form.
- This form Jira field value is saved in the Description field in Jira
If the user types in the Jira key e.g. ABCD-1234 but does not click to select the issue, then:
- The validation for empty field does not get triggered as the validation sees a value in there.
- However this value, that is in the form field, does not get saved to the description field. That part of the description field text is blank.
- If the user does click to select the Jira issue then the description saved in Jira is only the issuekey as the value. Summary and status does not get saved.
How can I do the following?
- Validate that the form is not empty such that it contains a selected Jira issue and not just a typed in value or no value.
- Save the Jira issuekey, summary and status to the Jira description field.