dannyman.toldme.com


JIRA

JIRA: Require User Time Tracking

Link: https://dannyman.toldme.com/2011/12/01/jira-jython-validator-enforce-time-spent/

Time tracking in JIRA is a nice feature, but we have to get people to do it. My initial attempts to enforce time tracking ran into trouble, but I was able to develop a Jython Validator to hook on to transitions to the Resolved state. Now it is mandatory for our users to log time worked before they can resolve an issue:

# -*- coding: UTF-8 -*-
import com.atlassian.jira.issue.worklog.Worklog
from com.atlassian.jira import ComponentManager
 
# Time Already Logged
timespent = issue.getTimeSpent()
# Time Logged via current screen
try:
    timelogged = dict(issue.getModifiedFields())['worklog']
except:
    timelogged = False
 
# Duplicate Issue?  It is as good as logged!
resolution = issue.getResolution()
if resolution['name'] == "Duplicate":
    timelogged = True
if resolution['name'] == "Self Corrected":
    timelogged = True
 
# Nagios likes to close tickets, but doesn't get paid
user = ComponentManager.getInstance().getJiraAuthenticationContext().getUser()
if user.getName() == "nagios":
    timelogged = True
 
if timespent < = 0 and timelogged == False:
    result = False
    description = "Please log the time you spent on this ticket."

2012-01-24 Update: the script now contains additional logic, which exempts the nagios user from enforcement and allows resolution of duplicated or self-correcting issues which may not require time tracking. Hopefully this example is useful to somebody.

4 Comments


Linux, Technical

Notes: Make Ubuntu GUI Less Annoying

Link: https://dannyman.toldme.com/2011/12/07/ccsm-ubuntu-gui-tweaks/

First, install ccsm.

Terminal windows resize themselves stupidly when changing font size. I don’t know how to fix that, but in the CompizConfig Settings Manager, I can enable Resize Info to overlay the dimensions of any window as I resize it.

Often, when dragging a window around, it tries to go full-screen on me. This is obnoxious! Just disable Grid in CCSM.

If anyone knows how to reconcile Focus Follows Mouse with “menu bar at the top of the screen” I would love to hear it! Or if you know how to configure the pager to something besides 2×2 …

1 Comment


News and Reaction, Politics, Sundry

Does President Obama Practice Appeasement?

Link: https://dannyman.toldme.com/2011/12/08/ask-osama/

Hell yeah, my man is going to play the bin Laden card!

Feedback Welcome


News and Reaction, Photo-a-Day, Sundry, Technology, Testimonials

Nobody Uses the Post Office Any More

Link: https://dannyman.toldme.com/2011/12/10/nobody-uses-the-post-office-any-more/

image

Especially in Mountain View, CA, the heart of the Silicon Valley.

2 Comments


Good Reads, Letters to The Man, News and Reaction, Politics, Religion, Technology, Testimonials

The Greatest Speech Ever Made

Link: https://dannyman.toldme.com/2011/12/12/the-greatest-speech-ever-made/

Unexpected tear-jerker.

1 Comment


News and Reaction, Technology

Lizard Gaming

Link: https://dannyman.toldme.com/2011/12/15/lizard-gaming/

Ant smasher!

Feedback Welcome


Photo-a-Day

Happy Christmas

Link: https://dannyman.toldme.com/2011/12/26/happy-christmas/

image

. . . FIVE Mourning Doves . . .

Feedback Welcome


Photo-a-Day, Testimonials

I <3 Real Books

Link: https://dannyman.toldme.com/2011/12/29/living-breathing-tactile-books-4ever/

image

Living

Breathing

Tactile

Books

Hold and keep
or give away

Now on display
forever.

Books Inc. Mountain View, CA

Feedback Welcome


About Me

Grown Man Playing With Christmas Toys

Link: https://dannyman.toldme.com/2011/12/30/grown-man-playing-with-christmas-toys/

1 Comment


Arrr! . . . Avast!
Site Archive