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,559,294
Community Members
 
Community Events
184
Community Groups

How to hide some fields based on another field value in JIRA cloud

Hi,

We recently moved to cloud. In server version, we used Script runner Behavior scripts to make a field mandatory and to make make hide/show based on the value selected in a custom field.

But in Cloud, i am not sure, my behavior script is showing so many errors. I tried Automation in JIRA, but that didn't helped me.

Anyone please help me in getting this issue resolved

1 answer

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2023

Hi @9103296 

Behaviors in cloud have nothing to do with Behaviors in server. They lack many things currently, but alas the dudes and dudettes at Adaptavist are working towards closing this gap.

With the above said, in Cloud, behaviors only works for "on create" screen and only for a selection of custom field types. E.g. you can't change the behavior of a date or date-time field (as we speak).

If you have JSM you can use form to show hide fields during the creation of a ticket. If not, you can see some example of Behaviors here https://docs.adaptavist.com/sr4jc/latest/features/behaviours/example-behaviour

Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 24, 2023

And most likely you will need the following example:

getFieldById("FIELD_ID").setVisible(false)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events