Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Dependency between two custom fields

Fariz Aliverdiyev
Contributor
February 9, 2022

Hello!

I would like to create dependency between two custom fields. For example, I have a select list custom field "Test" with two options "test 1" and "test 2", and number field "Quantity". 

So, is it possible when selecting "test 1" option only values less than 10 in the field "Quantity" are allowed to be entered by user?

These two fields are used on a transition screen. 

Thank you in advance. 

3 answers

2 votes
Fabio Racobaldo _Herzum_
Community Champion
February 9, 2022

Hi @Fariz Aliverdiyev ,

you can do that using Behaviour feature provided by Script Runner app https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=server&tab=overview&_ga=2.176794021.1065172825.1644393513-922630374.1631104357

At the following link you can find some examples https://scriptrunner.adaptavist.com/5.6.8/jira/behaviours-overview.html

Using builtin capability you can't do that.

Hope this helps,

Fabio

0 votes
Kumar Ankit January 6, 2025

I have the same requirement. This can be achieved via behaviors, but its biggest limitation is that it doesn't work on the view screen.

It only works on edit/create screen.

0 votes
Dawn Cooper
Contributor
November 30, 2022

Can a Behavior also create a dependency between 2 custom fields. Display custom field 2 (text field) only when a specific value is selected in custom field 1 (Single select list) ?

Tiffany J
Contributor
January 18, 2024

was this ever clarified?

Suggest an answer

Log in or Sign up to answer