Is there a way to show messages to the user?
Asked by KALOS:

I need to know if there's a way to show messages to the user. Let me explain. It often happens that you want to show the user a warning saying that if a certain custom field is not filled in or a certain preliminary action is not carried out, the workflow cannot go ahead.


Answers:
author: Florian Bonniec
body: Hi [@KALOS](/t5/user/viewprofilepage/user-id/5479877)

I think you are looking for a validator, such a Field Required that let you set an error message if the field is not set during the transition. Apps such as JSU or Scriptrunner allow you to do this.

Regards

comments: author: KALOS
body: [@Florian Bonniec](/t5/user/viewprofilepage/user-id/495589)

thank you for your answer, but as far as I know the validator is for validating, whereas I would really like to show a dialogue box on the screen that explains to the user. How do I do that with the validator? If it can be done, I didn't know.  


author: Florian Bonniec
body: Validator such as the one from JSU allow you to set an error message that is displayed under the field when not properly filled.

You could also set the description of the field in the Field Configuration in order to guide the user. If "Enable HTML in custom field descriptions and list item values " settings is on you can even add css to make it more visible.

Regards


author: KALOS
body: [@Florian Bonniec](/t5/user/viewprofilepage/user-id/495589)

thank you, I understood, I would choose another type of validator. I have now selected the one you told me and solved it. Thank you all for your support.

( also to [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946) )


author: Valerie Knapp
body: Hi [@KALOS](/t5/user/viewprofilepage/user-id/5479877) , thanks for your question.

You can use workflow conditions and validators for this.

Here is the documentation that explains how they work. Apologies, I can only find the cloud documentation at the moment but it should work the same way in DC.

<https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/>

Here is a worked example:

<https://confluence.atlassian.com/jirakb/how-to-prompt-a-required-field-when-transitioning-the-status-of-an-issue-1235850930.html>

Otherwise, there are always apps, if you want to show a warning about a particular field. For example, my former employer, Actonic, make an app for this - [https://marketplace.atlassian.com/apps/1218962/data-protection-and-security-toolkit-for-jira-dlp?hosting=datacenter\&tab=overview](https://marketplace.atlassian.com/apps/1218962/data-protection-and-security-toolkit-for-jira-dlp?hosting=datacenter&tab=overview) . You can always install the free trial and see if it helps you.

Please share your feedback if you have any follow up questions or doubts.

Cheers

comments: author: KALOS
body: [@Valerie Knapp](/t5/user/viewprofilepage/user-id/4929946)

thank you for your reply, in fact that is what I knew could be done only that on my jira Datacenter I have this type of screen, moreover with a useless 'comment' field which I do not need. I would just like to make a dialogue box appear with a text defined by me.

![Screenshot 2024-08-23 alle 15.25.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/343485iB1C3875C461C2612/image-size/large?v=v2&px=999 "Screenshot 2024-08-23 alle 15.25.48.png")![Screenshot 2024-08-23 alle 15.27.28.png](https://community.atlassian.com/t5/image/serverpage/image-id/343486i075A74F6AF736E79/image-size/large?v=v2&px=999 "Screenshot 2024-08-23 alle 15.27.28.png")


Tags: data-center

jira-data-center

workflow