How to make the comment mandatory when closing a bug issue?

Raphael Allegre September 29, 2013

Hi,

I would like to force my users to put a comment on a bug issue when they are closing it or setting the resolution to a specific state such as "cannot reproduce" or "won't fix"

Today, comment is not mandatory so we are missing some information.

Thx

6 answers

1 accepted

0 votes
Answer accepted
RambanamP
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.
September 29, 2013

you can use comment required validator from Jira Misc Workflow extenstion plugin

https://innovalog.atlassian.net/wiki/display/JMWE/Validators#Validators-3-CommentRequiredValidator

Raphael Allegre September 30, 2013

Hi,

What about making the comment mandatory not for the transistion but also a specific resolution type. Example: a comment is mandatory when the user "Resolve" an "Open" bug issue and set the resolution to "cannot reproduce".

Cheers,

Raphael

RambanamP
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.
September 30, 2013

then you need to write validator!!

you can use script runner plugin

check this

https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

1 vote
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.
September 29, 2013

I presume the required comment is for tracking purposes. Rather than doing that, I suggest creating a custom text field named something like 'bug close comment' and making it mandatory at the close transition. That will allow you to easily seach for similar comments for all bugs at time of closing.

0 votes
Christian Gertsch October 5, 2020

Hi there

I am working on the same issue and it would be great if I could solve it using ScriptRunner (since we have the Plugin already).

@RambanamP Unfortunately your link does not work anymore: https://jamieechlin.atlassian.net/wiki/display/GRV/Script+Runner

 

Any other thoughts?

Thanks for your help!

 

Christian

Prasad Rambanam[ACIS] October 5, 2020

@Christian Gertsch  there is comment required validator in script runner validators so you can use it

image.png

Christian Gertsch October 5, 2020

Perfect, thank you!

0 votes
LukasG December 5, 2016

Another option is to use the Plugin Workflow Essentials for JIRA - It's not free but also supports to make the comment required on a transition screen.

0 votes
Bharadwaj Jannu
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.
September 29, 2013

you can write a workflow validator as

InvalidInputException e=new InvalidInputException();

String[] comment=(String[])ActionContext.getParameters().get("comment");

if(comment!=null)

{

if(comment[0].isEmpty())

{

e.addError("comments","Comment must be filled");

}

}

if incase resolve:

ActionContext.getParameters().get("resolution");

Sairam Yeturi July 20, 2017

can we do something similar for satisfaction rating to be mandatory before resolution is set or status is moved to done / resolved / closed? any views?

0 votes
Timothy
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.
September 29, 2013

You are looking for the Field Required Validator (https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities).

Suggest an answer

Log in or Sign up to answer