How to validate if a comment was entered in a transition screen using JIRA and Groovy Runner Plugin

Jochen Seeber April 2, 2014

Hi,

we'd like to use the Groovy Runner plugin for Jira to validate if a user has entered a comment in a workflow transition screen.

Since this is part of a larger script, we have to stick to Groovy Runner and cannot use another plugin.

Any help how this can be done would be greatly appreciated.

Regards, Jochen

2 answers

1 accepted

2 votes
Answer accepted
JamieA
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.
April 2, 2014

if (transientVars.get("comment")) { ... }

in a validator.

Jochen Seeber April 2, 2014

Thank you!!

Oleg Mykytiuk February 29, 2024

Is there a way to validate if comment was entered using ScriptRunner Cloud validator?

1 vote
Ritu Garg July 24, 2014

I want to check value of custom field and comment empty in groovy script validator. Please help.

Suggest an answer

Log in or Sign up to answer