Prevent ticket from moving to done column unless Time Tracking is complete

Colin Bretagne April 15, 2024

Hi Community

I am using Jira Cloud and I am trying to configure the workflow in my Kanban Board to prevent tickets from ending up in certain columns unless certain fields have been filled out but there is one field that I cannot seem to find and that's the time logged.

Below is a screenshot of the time logged

time1.png

But when I edit my workflow, I am unable to find the field for time tracking. All I see is Time Spent and it stops my ticket from advancing because I haven't filled in the time spent.

time3.png

 

Any help would be grateful.

Thank you

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 15, 2024

Hello @Colin Bretagne 

Welcome to the Atlassian community.

Do you want to

  • force users to add a time entry while they are making the transition, or
  • require that some time as been logged against the issue at some point but not require more time to be logged during the transition?
Colin Bretagne April 15, 2024

Hi Trudy

I just need time logged at some stage before it ends up in the Done column. 

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 16, 2024

Use the Sum Time Spent field.

Screenshot 2024-04-16 at 9.10.19 AM.png

Like Colin Bretagne likes this
Colin Bretagne April 16, 2024

That worked! Thank you!

Like Trudy Claspill likes this
0 votes
Vicente Domínguez _Decadis AG_
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.
April 15, 2024

Hello @Colin Bretagne,

I am part of the Decadis team and I would like to propose a solution using our app JWT for Jira Cloud.

It should be possible to check if time was logged in the issue with the following expression in a Jira expression validator.

let wk = issue.worklogs;
wk.length != 0 && wk.filter(worklog => worklog.timeSpent > 0).length > 0

This checks that there is at least one worklog and that the time spent in any of the worklogs is more than 0. 

Please, note that this expression would only be effective if time is not logged in the transition screen of the transition where the validator is placed. For more information about different approaches, you can also visit our use case Validate worklogs.

If you need more information about it, please, feel free to visit our documentation, reply to us in this thread or to create a request in our Support Portal.

Best regards,

Vicente 

Colin Bretagne April 16, 2024

Hi Vincente

Thank you for your response. I will take a look at JWT for Jira and see if it fits our needs.

I am trying to get this resolved without a 3rd party plugin though. Hoping it can be done natively by Jira.

 

Regards
Colin

Suggest an answer

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

Atlassian Community Events