Uploaded image for project: 'CiviHR'
  1. CiviHR
  2. HR-264

Add "length of employment" field

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Won't Do
    • Affects Version/s: HR-1.1
    • Fix Version/s: HR-1.2
    • Component/s: Jobs
    • Labels:
      None
    • Sprint:
      Sprint 12d

      Description

      Inject some JS/jQuery on the "View Contact" screen to show Length of Employment field using
      http://momentjs.com/docs/#/durations/humanize/ for a helper which will generate those strings

      ====Original=============
      Currently, there is a field for "Initial Join Date" . We also want to display the length of employment in the same spot. It should display as either the #months or as a natural-language description ("3 weeks", "2 months", etc – see http://momentjs.com/docs/#/durations/humanize/ for a helper which generate those strings)

      == Option A ==

      • Add a custom data field, "Length of Employment", to the same custom-data group
      • The field should not be editable in the UI
      • The field should update automatically (using a trigger or hook – whenever the join-date changes)
      • The field should update periodically (using a cron task)

      == Option B ==

      • Inject some JS/jQuery on the "View Contact" screen

      == Tradeoff ==

      Option A is more brittle (eg fails due to misconfigured cron task), but it creates a searchable field. Option B doesn't support searching but should be less prone to misconfiguration.

        Attachments

          Activity

            People

            • Assignee:
              poonam Poonam Nalawade
              Reporter:
              timotten Tim Otten
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h