Class PermissionUsedToModifySprintAnalyticEventPublisher
java.lang.Object
com.atlassian.greenhopper.customfield.sprint.PermissionUsedToModifySprintAnalyticEventPublisher
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
publishEvent
(Object[] sprintIdValuesToSave, Collection<Sprint> currentSprints, com.atlassian.jira.issue.customfields.view.CustomFieldParams relevantParams) Determines sprints that were added/removed when user edits the sprint custom field.
-
Field Details
-
SPRINT_EDITING_CONTEXT_KEY
- See Also:
-
SPRINT_EDITED_IN_BOARD
- See Also:
-
-
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
-