Forums

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

Use workflow validators to force time logging

Andrii Sidorov
Contributor
November 6, 2022

Hi team. So I need to force my team to fill in the Time tracking field before they change the status of the sub-task. But when I try to add the validation for the transition and choose Field Required Validator, I don't see the Time tracking option. How can I include it in the validation? I have this field for all my sub-tasks.

 

I even tried Jira Misc Workflow Extensions (JMWE) and it didn't help.   

3 answers

1 accepted

0 votes
Answer accepted
Alex Koxaras _Relational_
Community Champion
November 6, 2022

Hi @Andrii (PM) 

Have you try this with JMWE? The following validator is without a transition screen. It will only check that at least someone has logged time.

timespent jmwe.png

 

Did you have something like this in mind?

Andrii Sidorov
Contributor
November 6, 2022

@Alex Koxaras _Relational_ that actually worked. Thank you. Now our developers won't forget to fill in the time. The only thing is that I also need to have another validation Field has been modified for another transition. I picked a Log Work field for it and it didn't work. DO you have any idea of what script I can use here?  

Alex Koxaras _Relational_
Community Champion
November 6, 2022

Why it didn't work? How did you set it up and where did you placed it?

Andrii Sidorov
Contributor
November 6, 2022

Screenshot 2022-11-06 at 8.49.52 PM.png

@Alex Koxaras _Relational_  I attached it to the transition between Testing in Progress and In progress. Tested it but it didn't ask me to modify the time. 

Alex Koxaras _Relational_
Community Champion
November 6, 2022

Did you place a screen on this transition? 

Andrii Sidorov
Contributor
November 7, 2022

@Alex Koxaras _Relational_ yes just did that and the problem persists 

0 votes
David Fischer
Community Champion
November 7, 2022

The Log Work field is actually a fake field that doesn't have any value. This is why you cannot select it in the Fields Required Validator.

Instead, you should select the Time Spent field in the Validator.

0 votes
Adaeze_Jude_HEROCODERS
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 7, 2022

Hello @Andrii (PM) 

My name is Adaeze, a Customer success expert at HeroCoders. You can achieve this using our App Clockwork Automated Time Tracking & Timesheets Pro.

Clockwork provides a Clockwork time-logged validator that 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.

To set up the Clockwork Validator:

  1. Navigate to Jira Settings > Issues > Workflows
  2. Find the appropriate workflow and click edit
  3. Select Diagram mode.
  4. From the Diagram mode, click on the transition arrow.
  5. Select Validators.
  6. Click theAdd validator button
  7. Select Clockwork time logged and click Add.chrome_Aq2C3gC8Lz.png
  8. Click Publish draft to save the changes to your workflow.

Test by transitioning an issue that does not meet the condition.

Please see our documentation for more on clockwork validators.

Suggest an answer

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

Atlassian Community Events