Required fields : Comment - does not work

Mohini P May 12, 2014

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
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 20, 2014

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

0 votes
Uday Karthik Yadlapalli October 28, 2014

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

Uday Karthik Yadlapalli October 28, 2014

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

0 votes
Mark Scott June 23, 2014

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.

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 20, 2014

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

0 votes
Andris Grinbergs
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.
May 12, 2014

You most likely have custom field "comment". Here is how you should create what you need: https://confluence.atlassian.com/display/JIRA/How+to+configure+comment+field+to+become+mandatory+in+workflow+transition

Mohini P May 12, 2014

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

That seems to be not working

Andris Grinbergs
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.
May 12, 2014

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

Mohini P May 13, 2014

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!

Mohini P May 20, 2014

does anyone have answer to this question?

Suggest an answer

Log in or Sign up to answer