-
Type:
Suggestion
-
Resolution: Unresolved
-
Component/s: Epics - Attribute
-
5
Issue Summary
The Process Step Assignment History is sourced from the Jira Align table tblAgileWIPValueHistory, which does not include the same data as the Feature/Story/Epic Log which is sourced from the Jira Align table tblAuditLog.
The primary concern is the discrepancy between actual updates made to workitem' process steps in the UI and how these updates are recorded (or not recorded) in the database. Despite successful logging of these changes in both the Feature/Story/Epic Log Table and Audit Log, the Feature Process Step Assignment History fails to reflect these updates. This inconsistency poses a risk of presenting incorrect data in Enterprise Insights regarding the current process steps of features, especially when these features are associated with multiple value streams.
Steps to Reproduce
- Within a value stream, change the process step for a feature or a epic.
- Verify that the change is reflected in both the Feature Log Table and Audit Log.
- Inspect the Feature Process Step Assignment History for the recorded change.
- Move feature back to a previous process step in the process flow.
- Verify that the change is reflected in both the Feature Log Table and Audit Log.
- Inspect the Feature Process Step Assignment History for the recorded change. Notice records for the previous process step history are missing.
Expected Results
Every change made to a workitem process step within a value stream should be consistently logged across the work item Log Table, Audit Log, and especially within the Work teim Process Step Assignment History, ensuring that Enterprise Insights can load all the Process Steps History from tblAgileWIPValueHistory
Actual Results
The following query returned these results which does not match the Log results, showing the mismatch is in Jira Align.
SELECT history.AuditID AS [Process Step Assignment History ID], CASE WHEN history.ObjectType = 1 THEN 2 --Epic WHEN history.ObjectType = 2 THEN 3 --Feature WHEN history.ObjectType = 3 THEN 4 --Story WHEN history.ObjectType = 4 THEN 1 --Theme WHEN history.ObjectType = 5 THEN 43 --Capability END AS [Agile Object ID], N'No' AS [Deleted Flag], --Dates history.StartDate AS [Assignment Start Date], history.EndDate AS [Assignment End Date], --Foreign Keys ISNULL(history.ObjectID, 0) AS [FK Object Item ID], ISNULL(history.LifeCycleStateID, history.LifeCycleStateOp) AS [FK Process Step ID], ISNULL(Lkp_AssignedBy.Uniq, 0) AS [FK User Assigned By ID], ISNULL(history.LifeCycleProgramSetID, 0) AS [FK Value Stream ID] FROM tblAgileWIPValueHistory history LEFT OUTER JOIN sysmemberpermssion Lkp_AssignedBy ON Lkp_AssignedBy.UID = history.MovedBy WHERE ISNULL(history.ObjectID, 0) = 13018
Process Step Assignment History ID : 6478 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 11/10/2022 7:57:11 PM Assignment End Date : 11/10/2022 8:13:06 PM FK Object Item ID : 13018 FK Process Step ID : 890 FK User Assigned By ID : 661822 FK Value Stream ID : 241 Process Step Assignment History ID : 6479 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 11/10/2022 8:13:06 PM Assignment End Date : 11/16/2022 4:31:46 AM FK Object Item ID : 13018 FK Process Step ID : 893 FK User Assigned By ID : 661690 FK Value Stream ID : 242 Process Step Assignment History ID : 6480 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 11/10/2022 8:13:06 PM Assignment End Date : 11/10/2022 8:13:06 PM FK Object Item ID : 13018 FK Process Step ID : 891 FK User Assigned By ID : 661690 FK Value Stream ID : 241 Process Step Assignment History ID : 6481 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 11/10/2022 8:13:06 PM Assignment End Date : FK Object Item ID : 13018 FK Process Step ID : 892 FK User Assigned By ID : 661690 FK Value Stream ID : 241 Process Step Assignment History ID : 6570 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 11/16/2022 4:31:46 AM Assignment End Date : FK Object Item ID : 13018 FK Process Step ID : 894 FK User Assigned By ID : 661692 FK Value Stream ID : 242 Process Step Assignment History ID : 12557 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 2/21/2024 9:04:20 PM Assignment End Date : 2/21/2024 9:15:34 PM FK Object Item ID : 13018 FK Process Step ID : 1207 FK User Assigned By ID : 661690 FK Value Stream ID : 327 Process Step Assignment History ID : 12560 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 2/21/2024 9:15:34 PM Assignment End Date : 2/21/2024 9:15:34 PM FK Object Item ID : 13018 FK Process Step ID : 1208 FK User Assigned By ID : 661690 FK Value Stream ID : 327 Process Step Assignment History ID : 12561 Agile Object ID : 3 Deleted Flag : No Assignment Start Date : 2/21/2024 9:15:34 PM Assignment End Date : FK Object Item ID : 13018 FK Process Step ID : 1209 FK User Assigned By ID : 661690 FK Value Stream ID : 327
Workaround
A workaround is to leverage the Feature History table to calculate the per-visit timing of a Feature in each Process Step, rather than summing total time across all visits. This means if a Feature moved through a step multiple times during its lifecycle (e.g., Step A → Step B → Step A), each visit is recorded separately with its own start date, end date, and days in step.
DECLARE @FeatureID INT = 1; -- Change this to the intended feature ID WITH fh_with_prev AS ( SELECT fh.[Feature Fact ID] AS feature_fact_id, fh.[FK Feature ID] AS feature_id, fh.[Feature Fact Valid From] AS feature_fact_valid_from, fh.[Feature Fact Valid To] AS feature_fact_valid_to, fh.[FK Program ID] AS program_id, fh.[Developmental Step] AS developmental_step, LAG(fh.[Developmental Step]) OVER ( PARTITION BY fh.[FK Feature ID] ORDER BY fh.[Feature Fact Valid From], fh.[Feature Fact Valid To], fh.[Feature Fact ID] ) AS prev_developmental_step FROM [current_dw].[Feature History] fh WHERE fh.[FK Feature ID] = @FeatureID ), fh_runs AS ( SELECT f.*, SUM(CASE WHEN f.prev_developmental_step IS NULL OR ISNULL(f.prev_developmental_step, N'') <> ISNULL(f.developmental_step, N'') THEN 1 ELSE 0 END) OVER ( PARTITION BY f.feature_id ORDER BY f.feature_fact_valid_from, f.feature_fact_valid_to, f.feature_fact_id ROWS UNBOUNDED PRECEDING ) AS step_run_id FROM fh_with_prev f ), fh_collapsed AS ( SELECT feature_id, program_id, developmental_step, step_run_id, MIN(feature_fact_valid_from) AS assignment_start_date, MAX(feature_fact_valid_to) AS assignment_end_date FROM fh_runs WHERE developmental_step IS NOT NULL GROUP BY feature_id, program_id, developmental_step, step_run_id ) SELECT f.feature_id AS [FK Feature ID], f.assignment_start_date AS [Assignment Start Date], f.assignment_end_date AS [Assignment End Date], DATEDIFF(DAY, f.assignment_start_date, CASE WHEN f.assignment_end_date = '9999-12-31' THEN GETUTCDATE() ELSE f.assignment_end_date END) AS [Days In Step], f.program_id AS [FK Program ID], p.[Program Name], pvsm.[Value Streams], f.developmental_step AS [Process Step] FROM fh_collapsed f LEFT JOIN [current_dw].[Program] p ON f.program_id = p.[Program ID] LEFT JOIN ( SELECT mvsp.[FK Program ID], STRING_AGG(vs.[Value Stream Name], '; ') WITHIN GROUP (ORDER BY vs.[Value Stream Name]) AS [Value Streams] FROM [current_dw].[MAP Value Stream to Program] mvsp JOIN [current_dw].[Value Stream] vs ON mvsp.[FK Value Stream ID] = vs.[Value Stream ID] WHERE vs.[Value Stream Level] = N'Feature' GROUP BY mvsp.[FK Program ID] ) pvsm ON f.program_id = pvsm.[FK Program ID] WHERE f.program_id <> 0 AND pvsm.[Value Streams] IS NOT NULL ORDER BY f.feature_id, f.assignment_start_date;
- causes
-
ALIGNSP-30995 Loading...
- is connected to
-
JAWM-6903 Loading...
- is related to
-
ACE-5190 Loading...
- relates to
-
JAWM-6903 Loading...
- resolves
-
ALIGNSP-21428 Loading...