Commit 1cc022f9 authored by Donald Cook's avatar Donald Cook

Added frontend tracking to epic tree

parent beebebff
...@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = { ...@@ -58,3 +58,5 @@ export const issueHealthStatusCSSMapping = {
onTrack: 'status-on-track', onTrack: 'status-on-track',
needsAttention: 'status-needs-attention', needsAttention: 'status-needs-attention',
}; };
export const trackingNewIssue = 'g_product_planning_epic_new_issue_added_from_epic';
...@@ -12,7 +12,7 @@ import { ...@@ -12,7 +12,7 @@ import {
relatedIssuesRemoveErrorMap, relatedIssuesRemoveErrorMap,
} from '~/related_issues/constants'; } from '~/related_issues/constants';
import { ChildType, ChildState, idProp, relativePositions } from '../constants'; import { ChildType, ChildState, idProp, relativePositions, trackingNewIssue } from '../constants';
import epicChildReorder from '../queries/epicChildReorder.mutation.graphql'; import epicChildReorder from '../queries/epicChildReorder.mutation.graphql';
import { processQueryResponse, formatChildItem, gqClient } from '../utils/epic_utils'; import { processQueryResponse, formatChildItem, gqClient } from '../utils/epic_utils';
...@@ -568,6 +568,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) = ...@@ -568,6 +568,7 @@ export const createNewIssue = ({ state, dispatch }, { issuesEndpoint, title }) =
return axios return axios
.post(issuesEndpoint, { epic_id: epicId, title }) .post(issuesEndpoint, { epic_id: epicId, title })
.then(({ data }) => { .then(({ data }) => {
Api.trackRedisHllUserEvent(trackingNewIssue);
dispatch('receiveCreateIssueSuccess', data); dispatch('receiveCreateIssueSuccess', data);
dispatch('fetchItems', { dispatch('fetchItems', {
parentItem, parentItem,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment