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


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.



1 answer

0 votes
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
Community showcase
Posted Tuesday in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

35 views 0 2
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