Inspiration

Ticket INC0000594 came in with Medium impact and High urgency. By its last update, urgency had fallen to Medium. Imagine a support lead proposing that Medium-impact, High-urgency incidents should move from High priority to Moderate. A review using the latest fields would skip this ticket, even though it is exactly the kind of incident the lead wants to discuss.

What it does

Second Shift lets a lead compare the current and proposed priority rules against the same incidents. Open a ticket to see its recorded priority, what each rule predicts, and which fields changed later. Save an expected priority and a reason, edit the rule, and watch the case pass or fail. If two tickets with identical policy inputs need different outcomes, Second Shift surfaces both for review. The simulation leaves the team's Jira priorities untouched.

How we built it

The app runs inside a Jira project on Atlassian Forge. A reviewer chooses the impact and urgency fields and the workflow status their team uses for triage. A Forge resolver reads issues and changelogs with that reviewer's Jira permissions. Starting with the latest values, it reverses later edits to reconstruct the fields at the first recorded transition into that status. Forge KVS saves settings and cases per reviewer and project.

Challenges and what we learned

A missing transition and an ambiguous sequence of edits can both leave the original priority inputs unknowable. Second Shift shows Unknown when the history cannot support a conclusion. Another surprise was that reviewing more tickets can still mean missing the right ones.

What we verified

The public example covers 24,918 incidents. The proposed rule affected 210 at their first recorded update. Using the last update found 257, but missed 17 of the original 210 and included 64 others. The archive uses the first observation as a proxy for triage. Separately, a controlled Jira incident confirmed that the app could recover the earlier impact from its changelog after a later edit.

What's next

The next test is a policy review with service-desk leads. I want to measure which exceptions they catch and how long the review takes compared with using their usual export.

Data credit

Public example adapted from Amaral, Fantinato and Peres (2018), Incident Management Process Enriched Event Log, UCI Machine Learning Repository. We derived first and last observations and applied a hypothetical policy. Dataset · CC BY 4.0.

HOW THE PROJECT MEETS THE TECHNOLOGY REQUIREMENT Second Shift is a Forge Custom UI app exposed through the jira:projectPage module. Its Node.js resolver calls Jira Cloud REST APIs as the signed-in reviewer to read visible issues, field definitions, priorities, statuses and changelogs. It reconstructs the inputs at triage, evaluates two priority matrices, and persists each reviewer's settings and expected outcomes in Forge KVS. The app requests read:jira-work and storage:app.

PUBLIC DEMO / TRY IT OUT https://kathir-itech.github.io/second-shift/

SOURCE CODE https://github.com/kathir-iTech/second-shift

JUDGE GUIDE https://github.com/kathir-iTech/second-shift/blob/main/JUDGES.md

TESTING / INSTALLATION INSTRUCTIONS

  1. As a Jira Cloud site administrator, open the supplied Forge installation link, choose your site and Jira, review the permissions and install. Open a Jira project and select Second Shift from the project navigation. Grant access if prompted.
  2. Start with Public archive. Open INC0000594. Inspect its High urgency at the first observation and Medium urgency at the last.
  3. Save High as the expected priority and enter a short reason. The proposed Moderate priority makes the saved case fail. Select Edit this policy cell and change the proposed priority to High. The saved case now passes.
  4. To reproduce the conflict in the video, restore the example proposal, open INC0001446, and save Moderate as its expected priority. The two tickets share a policy cell and now have conflicting expectations.
  5. To review your own data, choose Jira project. Select your project's single-value impact and urgency fields and triage status, then load tickets. In Policy matrix, set the reference and proposed priorities for the cell you want to test. Choose All cases to inspect results. Each load reads up to 25 recently updated issues you can see. For a replay, use an issue with a recorded transition into the selected status. The public archive route needs no field setup.

Browser example: https://kathir-itech.github.io/second-shift/ Walkthrough: https://github.com/kathir-iTech/second-shift/blob/main/JUDGES.md

Built With

Share this project:

Updates

Submission history