Required field based on the value of another field

Lurd Rodriguez
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 17, 2024

Hi everyone.

I am trying to make a custom field mandatory based on the value of another field. Let's see if someone can help me.

Thank you in advanced.

3 answers

0 votes
Adolfo Casari
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2024
0 votes
Klaudia Schön_Deviniti_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2024

Hi @Lurd Rodriguez

I work at Deviniti where we provide Extension for JSM app - one of the app which allows you to achieve your goal :) 

One of this app features is a dynamic forms. Using this one, you can build dependencies between custom fields and show then only if necessary. Otherwise, they can be hidden. It's also possible to decide whether the field is required or not based on the specific rules.

 

I strongly encourage you to schedule a meeting with our team using our Calendly: https://calendly.com/deviniti to see how the app works in the practive.

 

Best,
Klaudia

0 votes
Seon Shakespeare
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2024

Hi @Lurd Rodriguez,

Welcome to the community!

While JSM doesn't have built-in support for making a field required based on another field's value, here are some options you could consider:

1. ScriptRunner for Jira:

  • At my company, we use ScriptRunner Behaviours to add this kind of dynamic functionality to our JSM portals.
  • You can write scripts to create custom field validators that check other field values and make fields required conditionally.
  • ScriptRunner is available on the Atlassian Marketplace.

2. Multiple Request Types (For Different Scenarios):

  • If you need different sets of required fields for distinct use cases, create separate request types for each scenario.
  • Use clear descriptions to guide users to the correct request type.

3. Marketplace Apps: Explore other apps that offer conditional logic for JSM forms.

I recommend ScriptRunner for flexibility and control, but multiple request types are a simpler alternative.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events