Forums

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

Workflow conditions and validators

Shpendi Rakipi
Contributor
June 24, 2020

Dear all,

I am trying to add a condition to an incident workflow in one of my test projects. 

For this case,  I want to add the condition that Original Estimate (Time Tracking) should be != than 0m, and therefore to push the Service Desk Agents to fill up Original Estimate from Open to Work In Progress and from Open to Pending. 

I've taken the following steps: Issues > Workflows and edited the workflow connected to the incident type. Added a Condition that Orig Est != than 0m and the comparison type should be string. This has been both done for the transition Open to Work in Progress and Open to Pending. 

This didn't work. I am able myself to change the status without the need to fill Original Estimate.

 

Also, I added a validator to show a message to modify the Original Estimation filed in transition to both of the statuses mentioned above and still doesn't work. 

What is your recommendation?

Please find attached screenshots.

Regards,
Shpendi

1.PNG

 

2.PNG3.PNG

 

1 answer

1 accepted

0 votes
Answer accepted
Phill Fox
Community Champion
June 24, 2020

Hi @Shpendi Rakipi 

I suspect that if you look at the field original estimate it does not contain any value (ie it is null) this of course is not the same as 0m.  I would try having two validators one to check for not empty and one for not 0m. 

Regards

 

Phill

Shpendi Rakipi
Contributor
June 24, 2020

Hi @Phill Fox ,

Thank you for your speedy reply!

At the moment I am able only to create a validator for Field must not be empty and not one for 0m.

Screenshot below,

1.PNG

Phill Fox
Community Champion
June 24, 2020

Hi @Shpendi Rakipi 
So did this solve the problem for you? 
Remember you can have two seperate validators (In fact many) on a transition.  So my suggestion was to use the combination of what you had before with the new check for empty field. 

If not then you need to look at what is the actual entry in the Original Estimate field to understand what validator you should be applying. 

Phill

Shpendi Rakipi
Contributor
June 24, 2020

Hi @Phill Fox ,

Not quite. In fact, I am halfway through. I created a Validator: Field Original Estimate should be modified during the transition. and when I try to move from Open to Work In Progress, there is a pop up showing me the error message that I did write: Original Estimate field should be given a value. After I give the value of 1h, when I try to transition to Work In Progress I get the same message. 

I did combine this Validator with two different Conditions:
The field Original Estimate will have to be not equal to value '0m'. Compared as String and The field Original Estimate will have to be not equal to value '0m'. Compared as number.

It doesn't work still.

Help will be very appreciated!

Shpendi Rakipi
Contributor
June 24, 2020

@Phill Fox ,

At the moment I am stuck at Open status because the validator is not letting me go through even though I already gave a value for Original Estimates. Actually, I changed it several times. 

Shpendi Rakipi
Contributor
June 25, 2020

@Phill Fox I managed to find the right combination. Thank you very much for your support. Answer accepted!

Santiago Cejas October 29, 2020

Hi @Shpendi Rakipi can you share the combination that worked for you?

 

Cheers,

Santiago.

Like Mark M likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events