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

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

Avatar

1 badge earned

Collect

Participate in fun challenges

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

Challenges
Coins

Gift kudos to your peers

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

Recognition
Ribbon

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!

Leaderboard

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
4,552,283
Community Members
 
Community Events
184
Community Groups

Need two dependency fields.

Hi All,

 

I got requirement like Create Two fields namely
1. Release notes needed (check box) values-- YES & No
2. Release notes (Text field)

 

Here my requirement is the ' Release notes needed mandatory field so while creating the ticket when I select Release notes needed vales is NO, the other field Release notes Needs to be hidden, If I select Release notes needed vales is Yes, the other field Release notes Needs to be visible as mandatory filed.

 

Please guide me with this requirement.

Thanks in advance

1 comment

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 14, 2022

Hi @Srinivas  Welcome to Atlassian Community!

For this scenario, you need ScriptRunner plugin.  If you have this plugin, you can add Script Runner behavior on Release notes needed checkbox field. 

 

Thanks

V.Y

Hi Vikrant, Thanks for your reply,

 

If possible, Can you please provide me with the script for this requirement?

 

Thanks

Srinivas

Vikrant Yadav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Oct 14, 2022

Hi @Srinivas  You can check the similar post for script :- 

https://community.atlassian.com/t5/Jira-Software-questions/Scriptrunner-behavior/qaq-p/1442713

 

import com.atlassian.jira.issue.customfields.option.Option

def RE = getFieldById("customfield_14200")//put checkbox field id
def SF = getFieldById("customfield_14217") // put second field id

def options = RE.getValue()

//Single option selected
if(options instanceof String){
if(["Prod","Stage"].contains(options)){
SF.setRequired(true);
}
else{
SF.setRequired(false);
}
}
//Multiple options
else if(options instanceof List<Option> ){
if(options.contains("Prod") || options.contains("Stage") ){
SF.setRequired(true);
}
else{
SF.setRequired(false);
}
}

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events