Is there a quick way that I might be missing to force a comment based on the value of custom field?

Jeremy B I'm New Here Jan 19, 2018

I want to force a person to comment when a custom fied is set to a particular value. I thought I did it years ago but we had Suite Utilities for JIRA (JSU) at the time. When I came to the current place we did not have it because they started charging. I installed an old version just to see if it was there and I do not see it as an option. I really thought there had been a simple way to do it on the fly previously. It did not stick out as something difficult. I had started to do some scripting and seems the 2nd Adaptivist tutorial says you have to get JSU to do it so I figured I am back in the same boat. If anyone has a simple way to force this on transition. I believe there might be multiple ways to accomplish but just wanting to see if anyone has anything? 

2 answers

0 votes
Mikael Sandberg Community Champion Jan 19, 2018

If you have ScriptRunner you could setup a Behaviour that change the comment field to required if the custom field has a value. I do something similar with two custom fields, if one is filled in then the other becomes required.

0 votes
Alexey Matveev Community Champion Jan 19, 2018

Hello,

You could also use Power Scripts add-on. Power Scripts has Live Fields which are similair to behaviours in ScriptRunner. You can read more here:

https://confluence.cprime.io/display/JJUPIN/Live+Fields

Or you could also write a validator using Power Scripts. You can find more info here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Forvalidator:

If you need help on writing such a script, kindly ask.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,811 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot