Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need Original Estimate filed mandatory during transition for specific projects

Ronak
Contributor
March 3, 2020

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
Mehmet A _Bloompeak_
Atlassian Partner
March 3, 2020

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
Ronak
Contributor
March 3, 2020

Hello @Mehmet A _Bloompeak_ , 

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
mohammad shafiei May 9, 2022

What is the Add on you scripted?

0 votes
Ronak
Contributor
March 3, 2020

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;}

Mehmet A _Bloompeak_
Atlassian Partner
March 3, 2020

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

return (project.key != "" || originalestimate == null)
Faisal Gsouma
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2022

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

AlaaKassemSenousy August 27, 2023

Me too need to know @Ronak  @Mehmet A _Bloompeak_ 

Suggest an answer

Log in or Sign up to answer