JIRA version 7.0.10
While missing a mandatory field sometime the message displays on top of screen and sometime it is displayed with the field which is confusing. Either display the actual message always on top or at least display a generic message on top like "some mandatory field is missing"
Error_on_bottom.PNGError_on_top.PNG
There are three ways to set a field mandatory.
1) You can set the field required validation in Create step using the field required validator as shown below.
image2016-11-29 15:33:58.png
The error message will be set at the top of the screen.
2) Set the validation using script validator where you can set the validation along with an option to set the place where you need the error message to display.
image2016-11-29 15:28:29.png
3) Third one is to set a field mandatory always using Field Behavior. It displays on both places.
image2016-11-29 15:37:0.png
So, please use these choices and set it in a similar way, you needed.
Cheers!
Mahesh
Hi,
The field I made required is by using method 1. By workflow validator. However, there are two results for it. When the field is placed on create issue screen, the error is on top.When the field is placed on any other transition , the error is at bottom of field.
Hi Bashir, I have cross-checked all these 3 methods both on create screen and in transition screen. The behavior is consistent.
Please re-check from your side that you are using the same kind of validations in all transitions.
In addition to that, I have two more points here after taking a closer look into your screen shots.
I've checked it again too.In the screenshots, the discovered via field is mandatory in both the screens; create issue and the other transition. I have put the workflow validator, field required to make it mandatory on both screens.
According to you the error should be on top, which it is not. That's what strange for me.
For your additional points:The fields have not been made required from the field configuration. The red asterisk marks are coming from a script I've written which just looks up the list of mandatory fields in Workflow's Field Required validator, and puts an red asterisk against it.
There are no duplicates of Discovered via as well. Could you try to reproduce it in the following steps? 1) Create a new custom field. (Discovered via is a single select list)2) - Add the field on Create issue screen of a project. - Add the field on some other transition. 3) Make the field required from Workflow validator, (Field Required) for both the screens.
4) check for the error messages. One would appear on top, and one would appear at the bottom of the field.
It looks like you're new here. Sign in or register to get started.