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,558,804
Community Members
 
Community Events
184
Community Groups

How to make Fields mandatory on Edit screen, when we apply for In Decision status?

Hi Team,

Is there any way to make Fields mandatory on Edit screen, when we transition the issue to In Decision status?

Scenario: 

We are looking for a behavior when we move the status from In progress to In Decision, we want four fields to be mandatory on the edit screen only when the status is In Decision.

For remaining statuses on the Edit screen the same fields to be optional and only when the status is In Decision four fields should be mandatory

Can you please help me with the behavior for this requirement

 

Thanks

Ravikanth

 

1 answer

3 votes
Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 07, 2023

Hi @Ravikanth Chinthakuntla , 

curious question! 

Why would you need them to be mandatory on the edit screen?
As you explain yourself, you need them to be mandatory when you transition from "In progress" to "Decision". 

In this case, you can use a transition screen with added validation that those 4 fields are required. (You would need an app for that, there are a lot of useful workflow extending apps on the marketplace).
This way, you must fill them in during the transition.
However, when you reach the "Decision" status, the field could technically be cleared again.

If you want to prevent that, you would need an app like ScriptRunner and use behaviours to make fields required on any condition (like status).
But you might have your requirements fulfilled with the much simpler validator. 

Hope this helps! 

- Tessa

Hi Tessa ,

Thanks for the reply

As the fields were already been mandatory on the transition screen now I want to make them mandatory on the Edit screen as well by using a behavior.

Let me know if this is feasible or not. If yes please help me with the such script.

 If this requirement can be fulfilled with the much simpler validator it would be great If you can help on how to achieve with this?    

 

Thanks

Ravikanth     

Tessa Tuteleers
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 07, 2023

Hi @Ravikanth Chinthakuntla , 

if you already have the fields mandatory on the transition, the validator is already in place. 

If you still want to make sure no-one can clear the fields during that status, then a ScriptRunner behaviour is necessary. 

I can give you 2 great references from which you can create your own behaviour if you have a little scripting experience: 

The world of behaviours is a fun one so start exploring, but be warned. Since you are on server, if you are thinking to move to Cloud in the near future, behaviours are not entirely supported (yet), so steer clear then.. 

Good luck! 

- Tessa

Suggest an answer

Log in or Sign up to answer