An automation that does not allow any relevant tickets to close without entering a value in the Time Tracking (issue feature) field needs to be created. An 'Issue Transitioned' was set from any status to 'Closed' and 'Resolved' and a JQL condition was implemented to only affect the relevant projects since Time Tracking field is set in a default screen. However, when I come to set an 'Issue fields condition' to create a rule to check if the Time Tracking field has a value or value greater than 0, I cannot find the said 'Time Tracking' issue feature (Time Spent) field. i.e. I need to replace 'Status' with 'Time Spent'.
Hi @Dillon Scicluna ,
given that automation runs after an event, in this case, a transition, then you cannot prevent the transition that triggered the event. Another word automation runs "after the fact". you could use automation to transition the issue back if it was falsely transitioned. However, assuming you are using CMP projects then you can accomplish your goal, using a workflow Condition or Validator, depending on your exact requirement.
if I miss-interpreting your post, please let me know.
Time Tracking is an issue features that combines Time Spent and Time Remaining. I need to create an automation to not allow tickets to transition to statusCategory Done before the Time Spent field is given a value in the edit screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As @Jack Brickey said, Automation is not the way to stop a transition - it can't be done.
You need a validator in your workflow on the To Done transition or transitions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorted, thanks for the information totally forgot about validators :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a validatior is my 'Resolve' transition, saying that 'Time Spent' is a required field with a value.
However, even when there is time tracked in the 'Time Spent' field, when I try and transition to the 'Resolve' status using the 'resolve' transition, it pops up with my validator error, saying that the field needs to be populated.
Any suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kelly Phillips , are you talking about workflow validators? This thread is about Automation. If Workflow validator then is it possible you are using the field modified validator rather than field required?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kelly Phillips
Can you share a screenshot of your validator? Jira has a weird field called Time tracking which comprises of three different fields: Original Estimate, Remaining Estimate and Time Spent.
Maybe the validator checks all three? I'm just guessing here.
As a side note, our app Clockwork Pro sports its own "Time logged validator" documented here. The app recently became free for instances in the 1-10 users tier.
I'm here to help :)
Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using Advanced compare condition and use smart value {{issue.timetracking.timespent}} for time spent comparision.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I set the advanced compare condition to be x<1. What should the following 'Action' be to not allow the ticket to close, please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.