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,466,648
Community Members
 
Community Events
176
Community Groups

Need Original Estimate filed mandatory during transition for specific projects

Hey,

We have 1 workflow which is associated with multiple projects.

For specific projects I need to make Original Estimate is mandatory if issue moved to "In Progress" state from any other state.

Thanks,

Ronak

2 answers

1 vote

Hi @Ronak ,

There are 2 options.

  1. You can clone the current workflow, set "Field Required Validator" in the cloned workflow. Use this new workflow only for the specific project.
  2. You can install marketplace app that adds advanced validation features. With them you can use a simple expression language(Jira expressions) similar to below.
    project.key=='PBI' && ! issue.originalEstimate

Hello @Bloompeak Support , 

Thanks for prompt reply.
I agree with that and I know that solution already tired.

I am looking if it can be done via script (example below) because I have already 200+ workflows are in place. I tried with changing scripts but still it didn't help me. So probably I doubting script needs to be accurate to execute this.

if(project.key == ""){

if(originalestimate != null){

return false;}else {return true;}

}else{return true;}

Thanks,

Ronak

Like mohammad shafiei likes this

I have created script base I have provided in my previous reply.

if(project.key == ""){

if(originalestimate != null){

return false;}else {return true;}

}else{return true;}

Bloompeak Support Marketplace Partner Mar 03, 2020

I am happy that you solved it.
You might simplify the script as below

return (project.key != "" || originalestimate == null)

kinldy, could plz tell us where can i put this script ? 

Suggest an answer

Log in or Sign up to answer