[TIME-220] GroupTimeSheet is case sensitive on project key

Issue #220 resolved
Andriy Zhdanov created an issue

Add a group timesheet gadget. Enter into the project key field lower case of the project. It will accept this entry but then spam the log with:
2012-02-13 15:35:04,780 http-8080-104 WARN David Novotny 935x3926x20 - 10.0.10.34,10.0.10.62 /rest/timesheet-gadget/1.0/group-timesheet.json plugin.gadget.timesheet.GroupTimeSheetResource Project not found by key vbs

If you put in the upper case key, the entry is fine.

By michaelbode/Michael Bode on Mon, 13 Feb 2012 07:08:09 -0800

Comments (4)

  1. Andriy Zhdanov reporter

    Sorry, the input can't be validated upon configuration

    By azhdanov on Mon, 13 Feb 2012 10:32:56 -0800

  2. Andriy Zhdanov reporter

    You can't use the same project selector as in jira gadgets?

    By michaelbode on Tue, 14 Feb 2012 07:20:16 -0800

  3. Andriy Zhdanov reporter

    That's interesting, I didn't know there is project selector in jira gadgets, now I can see one in "Created vs. Resolved Chart" gadget, there is nice "Project or Filter Picker", but I can't get how I can use it in gadget plugin.

    https://developer.atlassian.com/display/GADGETS/Allowing+Configuration+Options+in+your+Gadget - You can make use of the user preferences section of your gadget XML specification, where you can declaratively specify a set of configurable options.

    https://developer.atlassian.com/display/GADGETS/Creating+your+Gadget+XML+Specification#CreatingyourGadgetXMLSpecification-UserPref - The <UserPref> section allows your gadget to give users a way of supplying their preferences and other user-specific information, called 'user preferences'.

    Attributes:

    datatype Optional The data type of this attribute. This is a standard Google gadget attribute. See the Google Gadgets XML Reference.

    http://code.google.com/apis/gadgets/docs/reference.html - The following table lists the <UserPref> attributes:

    datatype Optional string that indicates the data type of this attribute. Can be string, bool, enum, hidden (a string that is not visible or user editable), or list (dynamic array generated from user input). The default is string.

    Apparently Jira adds its own datatypes but they're poorly documented, finally I've found:

    http://wiki.customware.net/repository/display/ATLASSIAN/Writing+an+Atlassian+Gadget#WritinganAtlassianGadget-AJS.gadget.fields.projectPicker - project picker.

    http://permalink.gmane.org/gmane.comp.java.jira.user/61158 - example gadget, though problematic.

    Stay tuned

    By azhdanov on Wed, 15 Feb 2012 14:37:21 -0800

  4. Andriy Zhdanov reporter

    Done in 2.1, 2.2.7 and 2.3.2, caution it's necessary to reconfigure pivot and group timesheet gadgets

    By azhdanov on Fri, 17 Feb 2012 06:45:53 -0800

  5. Log in to comment