Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Custom Required field does not trigger when is empty

ahmed itman October 8, 2019

I created a custom field and it is optional by the default and specific step in transition it should be a required, yes it will be required i can see it "as a required " when clicking on issue "edit link", but if i do not enter the value for the required field, and changing the transition, it will change, but the expected is to open a popup menus " edit window " for entering the required value

Is their any method to implement it ?

2 answers

1 accepted

1 vote
Answer accepted
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 8, 2019

You will need to put the field on a transition screen and show that screen during the transition. That will give you the 'popup to access the field 

ahmed itman October 8, 2019

@Joe Pitt 

Is their a guideline to do that ?

Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 8, 2019

The documentation for workflows discusses transition screens. You will need a plugin (I use JIRA suite utilities) if you want the field to be REQUIRED during the transition. The Behaviors plugin will also allow you make it required. The plugin documentation will show you how. 

Like Andrew Laden likes this
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2019

You actually dont need the plugin, you just need to have a transition screen.

If you make the field required in the field configuration for the project, then any time the field shows up on a screen (other then the view screen) you will be unable to proceed until you give it a value. So as long is it is required in the field configuration, if you use a transition screen, you will have to set a value.

Note that the transition screen will always pop up, even if there is already a value in that field. If you really want to be user friendly, you can make 2 transitions, one with a condition that the field is empty that uses the transition screen, and another with the condition that the field is not empty, that doesn't.

Joachim Schittenhelm June 8, 2020

Hi Andrew,

where can I set that a transition is automatically used if the field is empty?

When I open the transition and go to "conditions" then there are lots of possible conditions (permissions, assignee, ...) but empty fields (or similar stuff) are no option.

Best regards

Joachim

Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 9, 2020

Ah, good point. The same plugin that would have provided the validator would have also provided the condition.  So you cant make 2 separate transitions without it.

And actually, I think I may have been mistaken above. If the field is required in the field configuration, it has to be set when the issue is created. I was mixing up the behavior of the resolution field with other required fields. You should test that behavior to be sure you are getting the behavior you expect.

Joachim Schittenhelm June 12, 2020

I found it in our JMWE plugin.

But unfortunately that is no solution that fits our workflow. (either we have to create too many additional transitions (we currently just use "from all status" in all our transitions) or have to accept, that the screen shows up even if the mandatory fields are filled.

Radhika Vijji _Innovalog_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 12, 2020

Hi Joachim,

Welcome to the community.

May I know which validator of JMWE are you using? Can you share a screenshot of what you have configured?

Regards,

Radhika

Joachim Schittenhelm June 12, 2020

Hi Radhika,

this has to be done via condition, not via validator.

the condition was: Scripted (Groovy) Condition (JMWE add-on)

The problem is, that in our workflow we can go from every status to every other status (we don't want to restrict this, as it hinders us more than it helps).

As you cannot have two transition from all status to a specific status (there can just be one!) we would have to replace the all-transition by 2 transitions for every other status. That is way too much.

(to seperate the transition that the screen just shows up if the mandatory field was not filled was no problem at all)

Best regards

Joachim

0 votes
Kari
Contributor
January 17, 2022

@Joe Pitt & @Radhika Vijji _Innovalog_ 

Dear All, 

I create a transition with a popup window that required a special Field it depends on the transition. How can I configured the popup window that the required Field need to be filed bevor the transition can completed? . Not all of them should be required Field but one or two.  

 

THX

Suggest an answer

Log in or Sign up to answer