I am able to create a screen and associate with transition in workflow. Also a validator is set up. Issue is that even though user has entered time in ticket, validator expect user to enter time during transition. Is there a way to compare and show the validation message only if time is not entered on ticket.
thanks
Archana
Welcome to the community! You are right; I've checked, and the Field Required Validator forces you to provide time spent during the transition.
There is a way to address this, but you would need an app for that. There are several options available on the Atlassian marketplace.
I am from Forgappify, and we developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira free app.
In order to allow the transition when time is already logged, but force the user to enter the time when it is empty, you would need to replace Field Required Validator with a Jira Expression Validator with the following expression:
originalIssue.timeSpent != null || issue.timeSpent != null
I am leaving a link to the app's documentation if you are interested.
I hope it will help.
Cheers
Welcome to the community!
You might consider using time-tracking apps that often have validators for such cases.
I can recommend our Clockwork Automated Time Tracking & Timesheets Pro, app, which offers a workflow validator that I think does what you are looking for.
The Clockwork time logged validator can be set on any transition in a workflow to ensure that time spent is logged before an issue can be moved to another status, regardless of whether the issue is being transitioned manually, via automation, or with an API call.
For details, you can refer to the documentation here.
Our app offers much more features, which you might find useful. If you have any questions, let us know.
Cheers,
Gracjan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can do this via Automation rule where you will specify that when an issue type status transition to either Done or Cancelled, the time tracking field should not be empty.
The only loop hole I see here is the precise logging of the hours from start to completion (meaning when they put 15mins at the very start and did not update from In Progress to other status, the rule will exempt it).
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.