Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Generate global Alerte message when required field is missing

Boris Demain August 29, 2019

Hi, 

I have many required field in different screen (creation, edditing, transition...) in many tab.

I would have One specifique alerte on top of my screen or in botum or in pop up, to say "One or some field(s) is/are required, you can't continue without feel it".

Should I work with behavior or validator of transition ?

Moreover, it's possible to personnalize field configuration then hide required field. I would  see my Alerte in any case.

Can someone help me ?

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2019

Hello Boris,

Thank you for reaching out.

Configure a validator in your project workflow should be enough to make all your fields required in the specific transitions you want. These would be the steps:

- Navigate to your project > Project settings > Workflow > Click to Edit

- Click on the relevant transitions > Validators > Add the field required validator, Selecting the fields it should be validated and configuring an error message when those fields are not filed:

Screen Shot 2019-08-30 at 17.01.27.png

Answering this question:

Moreover, it's possible to personnalize field configuration then hide required field. I would  see my Alerte in any case.

Even if your fields are hidden in your field configuration, the validator will still be applicable to it. 

Let me know if you have any questions.

Boris Demain September 2, 2019

Hello Petter,

that could respond to part of my problem because I need to have this controle also for edditing screen.

Secondly, I don't find your solution. Maybe cause by Jira server.

Indeed, when I follow "Click on the relevant transitions > Validators", got "add a Validator" then 3 choices : Script Validator, authorization validator, user authorization validator.

By default I guess is Script Validator [ScriptRunner], but nothing is loock like "Add Parameter To Validator".

 

Thank for your help

Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 2, 2019

Hello Boris,

You are correct. The validator I mentioned is provided by the JIRA Suite utility plugin which is added by default in JIRA Cloud application but needs to be manually installed in JIRA Server.

In that case, you could use behaviors to configure field validators, as described in the documentation below:

Field Required On Transition

Let me know if you have any questions.

Suggest an answer

Log in or Sign up to answer