Is it possible to require a comment when changing an issue's status?

garretmulder September 25, 2018

Is it possible to require a comment when changing an issue's status?  I'm specifically asking for when an issue is marked Done. We'd like to require a comment when a user changes the ticket status to "Done", but only require a comment for a "Done" status. In any other status, the comment field should be optional. Thank you! 

3 answers

1 vote
Christopher Marks July 26, 2022

Hello @Alexey Matveev and @Tansu Akdeniz,

can someone give me some help or a little guidance on how to create this in Jira Cloud -> Automation? I'm not getting anywhere with the comments unfortunately.

Thanks in advance for any input.

0 votes
Alexey Matveev
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 25, 2018

Hello,

If you are on Jira Cloud, you can use the Field Required Validator and choose the Comment field there.

If you are on Server, you would need an add-on. For example, you could use the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could add a validator, which would check if the comment was added. You can find an example of such a validator here:

https://confluence.cprime.io/display/TR/Validators#Validators-Commentrequired

You can find more info about validators here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

garretmulder September 25, 2018

@Alexey Matveev Thanks Alexey. We are on a server instance of Jira so it looks like I'll have to consider an add-on. Thank you! 

Alexey Matveev
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 25, 2018

You are welcome!

0 votes
Tansu Akdeniz
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 25, 2018
garretmulder September 25, 2018

@Tansu Akdeniz Thank you very much. Is there any way to do this without using any add-ons? 

Suggest an answer

Log in or Sign up to answer