Hi everyone,
I'm trying to enforce a workflow rule in Jira Service Management where users must enter a comment every time an issue transitions from one status to another.
What I've done so far:
It seems the validation is checking whether the issue has any existing comments rather than requiring a comment during the current transition.
My requirement:
Environment:
Hi @Niranjani
For each transition that requires an additional comment:
Hi @Niranjani !
You're spot on in your analysis: standard field validators on transitions check if the field itself has content on the issue, so once a comment exists from a previous step, the rule passes automatically!
The comment from @Geert __ 2improveIT is on the right track, and using a transition screen is indeed the best way to solve this. Because the default transition screen always includes a Comment field, you don't even need to add any fields to the screen itself!
Here’s the step-by-step to enforce a fresh comment on every transition:
Create/Select a Transition Screen: Create an empty screen (no fields added) or use an existing blank transition screen.
Assign to Transition: Edit your workflow, select the transition, and set Show a screen to your empty screen.
Add the Validation: Under Validate details, add a Validate field rule with:
Validate that field: Isn't empty
For field(s): Comment
Error message: (Your custom error message, e.g., "A comment is required to perform this transition.")
Repeat this for each transition where you want to mandate a comment, and it will require a brand-new comment input every single time!
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Geert __ 2improveIT and @Jean Horn !
Everything is working as per my requirement. I have followed the same steps which you have suggested.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.