Forums

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

How to make time spent update mandatory before closing as issue ?

Arindam Bhattacharjee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2019

For effort monitoring, we need Orginal Estimate and Time spent(Logged hours) to be updated before closing the issue.

How to do that ?

Could you help me here ?

 

3 answers

2 accepted

0 votes
Answer accepted
Alexey Matveev
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.
January 2, 2019

Hello,

You could also do it with the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You can write a validator with a code like this:

if (!(hasInput("worklog") and hasInput("originalEstimate"))) {

return false, "<error message>";

}

You can read more about the SIL validator here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

0 votes
Answer accepted
Tarun Sapra
Community Champion
January 2, 2019

Hello @Arindam Bhattacharjee

You would need to use a plugin like Jira Suite utilties or other related paid plugin to add a field validator on the transition. In the field validator transition you can choose the field "timespent" and make it mandaotry for the transition. But also, make sure you have added the time tracking (Log work) fields on the transition screen on that transition.

0 votes
Joe Pitt
Community Champion
January 2, 2019

@Arindam Bhattacharjee when you say 'updated' does that include changing the time spent if it already has a value? If so, making the field required on transition won't help. You'll need a plugin that can check the value and force a new value to be added that is greater then the current value.

Arindam Bhattacharjee
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 2, 2019

Hi @Joe Pitt , what I meant by updated is time spent /logged hours cannot be blank. 

Suggest an answer

Log in or Sign up to answer