How to make the Time Spent field required when changing issue status to Resolved?, currently it's not mandatory, and yet when changing issue status to other states like "Waiting for customer", "Closed" etc, I'd like to make the Time Spent field not required in these cases, but I can't find where is setting to do it.
You can make the field required in the field configuration.
If you access the JIRA Settings > Issues > Field configuration, you can choose the field configuration of the project you want to configure it. There, you can make the field required to the screens where he is added.
This way, all screens that the field is, it will be mandatory for the user to filled.
The field "Time Spent" is not available in the "View Field Configuration" menu for "Default Field Configuration". The closest match is "Time Tracking." However, this makes "Remaining Estimate" and "Original Estimate" required fields. Like the questioner originally asked, I want to make "Time Spent" required.
Honestly I don't care about estimates at the point when the issue is resolved. I just want to know how much time I need to bill for.
Using Add-on JIRA Suite Utilities (JSU),
On the "Resolved" transition that move the issue to your "Resolved" status, add a validator "Fields Required (JSU)" with the field "Time spent".
-> this way, the "Resolved" transition will fail with a message "Time spent field is required" (or something like that...)
Alternatively, on the same "Resolved" transition to status "Resolved" , add a condition "Value field (JSU)" : ("Time spent" != "").
-> this way, the "Resolved" transition won't display until a "Time spent" value is set for the issue
Both solutions require the JSU add-on from Atlassian Marketplace, and your prefered solution may depend upon your needs and your workflow scheme.
Hope this helps,
Hello Community! Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events