Required fields : Comment - does not work

Hi JIRA developers,

Can you please let me know how the Validator = Required fields : Comment is to be used ?

I added this validator and when I was executing that transition, as expected it threw an alert that comment field is required. But after inputting the comment when I retry to run that transition, again shows the same alert:

"Comment is required"....

Please suggest.

I need to make it mandatory that when the user tries to execute that particular transition, he should add new comment first.

5 answers

1 vote

Another possible solution is to use JIRA BEhaviour Plugin.

This link explains you how to implement that https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA+Behaviours+Plugin#JIRABehavioursPlugin-RequireaCommentwhenthestateisReopened

Hope this helps,

Fabio

I have already done it. It gives additional validator called Required fileds : Comments right?

That seems to be not working

No, it should give validator called Comment Required Validator. Comment is not really a field.

may I know what is the name of that addon. I am not able to find anything else apart from what I have already added. I cannot see Comment Required Validator!

does anyone have answer to this question?

0 vote

Hello Mohini,

Andris's comment is right.

You need to perform the following steps:

1. Install JIRA MISC Workflow plugin (https://marketplace.atlassian.com/plugins/com.innovalog.jmwe.jira-misc-workflow-extensions). You need to add a free license in order to have this plugin in-place

2. Edit your workflow transition, adding "Comment Required Validator" provided by the installed plugin

3. Publish your workflow

Please, keep in mind that it is a not free plugin.

Hope this helps,

Fabio

I have the same problem as Mohini with the workflow extensions plugin. I have the "comment required validator" enabled for a transition & even if I enter a comment, it still pops up the custom error message. It is not correctly noticing that a comment has been entered & letting the transition continue. Any help would be appreciated.

You can make the  'Comment' Field Required using Behaviours in Script Runner Plugin.
So whenever someone edits something it asks to put in a comment. It even works for transitions.

Check this link on how to do that:

https://jamieechlin.atlassian.net/wiki/display/JBHV/JIRA+Behaviours+Plugin#JIRABehavioursPlugin-Modifyfielddescriptions

You can Use Behaviours in Script Runner Plugin to set 'Comment' required everywhere, or use JIRA Suite utilities Plugin to create Validators to make 'Comment' required between Transitions. Both plugins are free too. https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Marketplace Apps

Tips on how to choose the best estimation method for your planning

Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...

76 views 0 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you