Is there a way to make a one of two fields required on a ticket?

Hello!

Was wondering if there was a way to make an issue require one of two fields, but not both. For example, an either or type situation where if you fill out one field you don't have to fill out the other.

 

Thanks!

1 answer

0 vote
Alex Christensen Community Champion May 25, 2017

In default JIRA, I don't believe so, no. If you're on JIRA Server and have ScriptRunner, you might be able to do something with the Behaviors module of that add-on, but I haven't tried and I don't know for sure.

Do you have a use case or example of what the contents of these fields would be? There might be another solution here, but we'd need more info to be able to help.

+1: our use case is when anonymous users file issues, require that they enter their email address, but not require that when team members file issues.  This would in effect be to require "Reporter" (jira user) or "External Email" (anonymous user) but not both.

It's the same answer, you're going to need something like ScriptRunner to add a behaviour to the fields.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

696 views 6 13
Read article

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