Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Fields required based on other custom field values

Hello there,

We are using three fields in the create screen and they are

Upgrade (single select single choice), values are None, Yes, No, SC and ST ("customfield_1112")

Base version (text field single line) ("customfield_113")and

Final version (text field single line)  ("customfield_114")

When the Upgrade value is other than None, I need the Base version and Final version fields to be filled in. If the Upgrade value is None, there is no need for the required field. Please assist me with this; I'm new to scripts and your assistance is greatly appreciated. Please let me know if you need any information on this.

Note: We are using the Scrip runner  plugin in my server instance and help me how to solve this issue.




1 answer

1 accepted

2 votes
Answer accepted
Fazila Ashraf Community Leader Dec 01, 2022

Hi @siva 

Check out the answer in and use 


 as required for your use case.


Trying scripting as a newbie could be daunting.. But trust me, once you are able to understand the given script and modify it for your use case, it opens many doors :) 

Vikrant Yadav Community Leader Dec 04, 2022

Hi @siva  Kindly try to apply Behaviour on Upgrade field. 

As suggest by @Fazila Ashraf  , you only need to replace .setHidden with .setRequired

def dropDown = getFieldById("customfield_12345")//Change field ID as per your instance

//define base version field
def baseVersion = getFieldById("customfield_67891") //Change field ID as per your instance

//define Final Version field
def finalVersion = getFieldById("customfield_66666") //Change field ID as per your instance

//apply condition on select list field

if(dropDown.getValue()== "None"){
} else {

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events