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
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,084 views 4 9
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