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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Discovered via field is "Project Attribute Field" (coming from a custom plugin)
Does that make any difference with how the errors are shown?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried these steps again.
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.
The error messages are at the top of both the screens.
Hang up! Before concluding, lets make one more thing clear that, there used to have to types of validators. One is 'field required validator' and another 'fields required validator'. Where, the first one shows the error message at bottom of field I guess. However I dont have that option now to check in my plugin version.
If not the case, I doubt your custom plugin.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
I have checked and the custom plugin just creates a field. The field is further made mandatory by JSU "Field Required" option.
I think this is a bug on JSU's part.
If I create a issue via form (meaning a popup appears and you fill it out to create issue), then the error message are shown at the bottom of the field.
However, if open up the issue creation form in a new window (like the example from your screenshot), then the error is shown at the top of the page.
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.