Menu

#8 "Move to Space" patch

open
nobody
None
5
2014-08-05
2007-09-13
No

This patch includes an additional functionality that gives the ability
to move a ticket from one space to other.
This is implemented in ItemViewFormPanel (Files:
"wicket/ItemViewFormPanel.java" and "wicket/ItemViewFormPanel.html")

The ability to define to which Spaces can be moved a Space Item is also
implemented.
Choosing "options" --> "manage spaces" (and having the sufficient
permissions) loads the Space management page.
Next to the Users column (was the last column) a new column has been
added for this purpose.
Pressing "Edit" in the newly added column for a particular Space, loads a new page where the user can select which Spaces can accept items from the Space in context.
(Files: "wicket/AssignableSpaces.java", "wicket/AssignableSpaces.html")

Discussion

  • Emmanuil Batsis (Manos)

    Updated "Move to Space" patch

     
  • Emmanuil Batsis (Manos)

    Logged In: YES
    user_id=542984
    Originator: YES

    Here's an updated patch that offers "Move to Space" functionality. Some notes follow, as given by my dev team. Let me know if you need any help.

    Objectives:
    1) The implementation should follow jtrac's look and feel and should
    be as dynamically as possible.
    2) Due to the fact, that metadata of each space are "isolated" in a XML
    Long Text Field, it is not possible to have common state id for Ajax calls through
    user interface.
    3) The item reference id is constituted from:
    a) Space key
    b) Space sequence number.
    So e.g. the 3rd item of space with space key "SPK" brings the
    reference id "SPK-3".
    If this item be moved to space with space key "SPK2" and there will
    be the 5th, the reference i will be now: "SPK2-5".
    The two reference ids have nothing common.

    This issue has been resolved by changing the Reference key components
    to three (3).
    In particular:
    a) The Space Key
    b) The Unique Id, which is database wide unique, generated by
    sequence. (New Part)
    c) Space sequence number.
    Now the component, that remains always the same is the 2nd one.

    Following main changes have been performed in the application:

    Administration:
    1) A new custom field has been added that represents all possible spaces
    in which an item can be moved.
    The GUI element of this is a Drop Down List.
    2) A new has been implemented where can be defined all possible spaces
    in which an item can be moved.
    This resolves, issue No. 2. The administrator can decide at space
    creation or update if the item of the space can be moved to other space
    (or spaces) and to define all possible "destinations" as well.
    Finally, the field can be handled as a usual custom field in the work flow.

    3) A "special state" has been added named "Move-To-Other-Space" with id 98.
    This resolves issue No. 1.
    The State is predefined (like "NEW" or "Close") but the administrator
    can remove it (at state edit), if it is not useful.

    User Interface:
    1) At the item creation, the application inserts as "move to space" the
    current space, in order to keep the origin space in case that item will
    change space in the future.
    2) At the item editing, appears a drop down list with all possible
    "destinations".
    If user changes to the "Move-To-Other-Space" state, and select space
    from the drop down list, the "assign to" will fill with all the
    corresponding assignees for the state of the
    destination space.
    3) The system displays the name of the space at the corresponding place
    holder in:
    a) Item View Page (incl. Item History)
    b) Item List Page
    c) Exported Excel File

    In particular, following files have been modified:
    "info.jtrac.domain.AbstractItem.java" Addition of new custom field in
    item and in history. Definition of new Item reference id.
    "info.jtrac.domain.ColumnHeading.java" To adjust the search.
    "info.jtrac.domain.Field.java" Definition of the new custom filed, which
    takes the id 100.
    "info.jtrac.domain.History.java" Addition of new item reference id.
    "info.jtrac.domain.Item.java" Addition of new item reference id.
    "info.jtrac.domain.ItemRefId.java". Modifications to adjust to the new
    Item Reference Id format (as above mentioned): <SpaceKey>-<Item
    Id>-<Space Sequence Number>
    "info.jtrac.domain.Metadata.java". Modifications to adjust the new
    "special" state "Move-To-Other-Space".
    "info.jtrac.domain.State.java". Addition of the new "special" state
    "Move-To-Other-Space".

    "info.jtrac.wicket.CustomFieldsFormPanel.java". Modifications to add new
    behavior in case of selecting to move item to other space.
    "info.jtrac.wicket.ItemFormPage.java". Modifications to add "current
    space" as "move to space" value at item creation in item and in history
    as well.
    "info.jtrac.wicket.ItemSearchFormPanel.java" Modifications to adjust to
    the new Item Reference Id format.
    "info.jtrac.wicket.ItemViewFormPanel.java" Modifications to add new
    behavior in case of selecting to move item to other space (in
    cooperation with "CustomFieldsFormPanel")
    "info.jtrac.wicket.ItemViewPage.java" Modifications to adjust to the new
    Item Reference Id format. (Load item after Reference id)
    "info.jtrac.wicket.ItemViewPanel.java" Modifications to adjust to the
    new Item Reference Id format. (Rename the form property)
    "info.jtrac.wicket.SpaceFieldListPage.java". Addition to open the field
    values definition page of this field, which is different as the already
    existing field values definitions pages.
    "info.jtrac.wicket.SpaceStatePage.java" (and the corresponding
    info.jtrac.wicket.SpaceStatePage.html). Modifications to adjust to the
    new "special" state 'Move-To-Other-Space".

    And the following new files have been added:
    "info.jtrac.wicket.AssignableSpaces.java" (inc. corresponding .html
    file) Definition of the spaces where an item can be moved to
    "info.jtrac.wicket.JavaScripts.java". Helper class which contains some
    useful javascripts
    "info.jtrac.wicket.SelectedValues.java". Helper class for
    "ListMultipleChoice" component

    File Added: jtrac_patch_20080303.txt

     
  • Levyshay Dahan

    Levyshay Dahan - 2014-08-05

    Hi All,

    i am using JTrac for 2 Years now,

    can you please support me and explain to me how i can apply the pathches (Move PR between sapces)?

    thanks for the suupport.

    Levy.

     
  • jpenney

    jpenney - 2014-08-05

    --no text body--

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.