Class PermissionUsedToModifySprintAnalyticEventPublisher

java.lang.Object
com.atlassian.greenhopper.customfield.sprint.PermissionUsedToModifySprintAnalyticEventPublisher

@Component public class PermissionUsedToModifySprintAnalyticEventPublisher extends Object
This is responsible for firing corresponding analytic events, which help to know which permission in ProjectPermissions.SCHEDULE_ISSUES and GHProjectPermissions.MANAGE_SPRINTS is being used, when modifying the Sprint field of an issue. There are two possible scenarios as below: * DnD issues from/to Sprints in boards * Update issues by inline-edit or view Edit Screen dialog.
  • Field Details

  • Constructor Details

    • PermissionUsedToModifySprintAnalyticEventPublisher

      public PermissionUsedToModifySprintAnalyticEventPublisher()
  • Method Details

    • publishEvent

      public void publishEvent(@Nonnull Object[] sprintIdValuesToSave, @Nonnull Collection<Sprint> currentSprints, com.atlassian.jira.issue.customfields.view.CustomFieldParams relevantParams)
      Determines sprints that were added/removed when user edits the sprint custom field. For each of them, we will determine, when the user performs the edit action:
      • whether they are using "manage sprints" permission or "schedule" permission
      • whether they do it from agile board or from the view issue page
      Then we fire corresponding analytic events. From these events, we want monitor the usage trend of the "manage sprints" permission. We would expect the usage of "manage sprints" permission is going up and the "schedule issues" permission is going down.