It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to make comments mandatory if certain value from checklist is selected?


On issue creation page we have a custom field which has four values. One of them is "Could not be checked".

Now when this value gets selected I would like to make comment box mandatory for creating the issue.

Can someone please look into this?




2 answers

0 votes
Joe_Pitt Community Leader Sep 16, 2019

You're going to need a listener since you want to dynamically check to see of a value is selected. I don't use them so I can't help. 

Hi Suhas,

This can be achievable if you are using ScriptRunner plugin. There is a Behaviour module in this plugin which you can use to make the any custom field mandatory based on value from other custom field on issue creation screen itself. Below is one of the possible solution,

1. Go to Add-On page. Click on "Behaviours" from left navigation pane.

2. In the "Add Behaviour" section, provide name and description and click "Add".

3. Click on "Fields" link against this new behaviour and add both the fields. Select list custom field and Text fox field.

4. Click on server side script for select list custom field and provide below script. (Please provide exact text box custom field name in the script).


def formSelect = getFieldById(getFieldChanged())
def comments = getFieldByName("Your Text Box Custom Field Name")

String formSelectValue = formSelect.getFormValue()

if (formSelectValue == "Could not be checked") {


5. Click on "Save" Button. Go to Behaviour page again and click on "Add Mapping" link against your newly created behaviour.

6. A pop up will appear and you have to provide your project name to map this behaviour. You can restrict this behaviour up to issue type level as well, else let it be default.




Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Keep your team in the loop with Team @mentions in Jira Software!

Hi everyone! My name is Jenny, a Product Manager at Atlassian. After launching Team @mentions in Confluence, we heard a lot of positive feedback from customers that they love how easy it is to @men...

226 views 4 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you