<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anik Chatterjee on Medium]]></title>
        <description><![CDATA[Stories by Anik Chatterjee on Medium]]></description>
        <link>https://medium.com/@anikchatterjee9?source=rss-7ecd5b93ba49------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zK46WGGHMYrTlkNpIVsVaw.jpeg</url>
            <title>Stories by Anik Chatterjee on Medium</title>
            <link>https://medium.com/@anikchatterjee9?source=rss-7ecd5b93ba49------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 00:42:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anikchatterjee9/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Refained, One Year Later: From a Comment Bot to a Triage Platform]]></title>
            <link>https://medium.com/ounass/refained-one-year-later-from-a-comment-bot-to-a-triage-platform-68efcb37ed1e?source=rss-7ecd5b93ba49------2</link>
            <guid isPermaLink="false">https://medium.com/p/68efcb37ed1e</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[gemini]]></category>
            <category><![CDATA[jira]]></category>
            <dc:creator><![CDATA[Anik Chatterjee]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 17:38:35 GMT</pubDate>
            <atom:updated>2026-06-28T17:48:37.998Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A follow-up to <a href="https://medium.com/ounass/refained-leveraging-ai-to-streamline-bug-triage-in-jira-d09376c33c75">refAIned: Leveraging AI to Streamline Bug Triage in Jira</a>.</blockquote><p>A good chunk of every support review meeting used to disappear into triage: three people on a call, scrolling a backlog, rediscovering that the “new” bug was a duplicate of one closed last quarter, and quietly agreeing that half the tickets were too vague to start. That meeting is the reason Refained exists.</p><p>When I wrote the first article about refAIned, I described it — fairly — as “very much a work in progress.” It was a Jira Forge app that took the ticket you were looking at, did some keyword matching against a cache of older tickets to find anything related, fed all of that to Google’s Gemini, and posted the result back as a <strong>comment</strong> on the ticket. It was useful. It was also, by my own admission at the time, missing the thing that would have made it genuinely good: any real semantic understanding of similarity. It matched keywords, not meaning.</p><p>That article ended with a list of things I wanted to fix. This one is, more or less, the story of fixing them — and discovering a bunch of new problems in the process, which is how these things always go.</p><p>The short version: refAIned is now <strong>Refained</strong> (stylized as ref<strong>ai</strong>ned; we dropped the awkward mid-word capital since some folks kept pronouncing it <em>ref-Ay-I-ned</em> — understandably so), and it has gone from “a clever script that leaves comments” to something I’m comfortable calling a platform. Here’s what changed, and why.</p><h3>Where we left off</h3><p>For anyone who didn’t read the first piece, the V1 mental model was simple:</p><ul><li>You open a Jira ticket.</li><li>refAIned pulls the ticket, keyword-searches a cache of historical tickets for related ones, and stuffs everything into a Gemini prompt.</li><li>Gemini writes a summary and some recommendations.</li><li>That text gets posted as a comment.</li></ul><p>It worked, but it had three structural problems I couldn’t unsee:</p><ol><li><strong>The output was a comment.</strong> Once posted, it was frozen in the ticket’s history. Re-running meant another comment. Ten reruns meant ten comments. The signal aged badly and cluttered the thing it was trying to help.</li><li><strong>The “intelligence” was a wall of prose.</strong> Helpful to read, impossible to query, sort, or act on programmatically.</li><li><strong>Everyone got the same prompt.</strong> A bug, an epic, and a spike were all judged against the same generic rubric because there was nowhere to put per-team or per-issue-type guidance.</li></ol><p>Almost everything that Refained became is a response to one of those three.</p><h3>What actually changed</h3><p>A lot changed, but two shifts matter more than the rest — and if you only have a minute, they’re the ones to take away:</p><ul><li>The analysis moved out of a comment and into a <strong>live issue panel</strong>.</li><li>There’s now a real <strong>dashboard</strong> for governing the AI’s instructions — per project, per issue type, or both.</li></ul><p>Everything else is the supporting cast that made those two possible: structured scoring instead of prose, a rules engine for whole backlogs, a similarity engine that finally understands meaning, and a backend rebuilt around AWS Lambda. Let’s walk through them.</p><h3>From a comment to a living panel</h3><p>The single biggest change is that Refained no longer talks to you through comments. It renders as a <strong>Jira issue panel</strong> — a dedicated, interactive surface that sits in the issue view and updates itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zy7QkO65F37SB4RRFj4l-Q.png" /><figcaption>Refained renders as a panel right inside the Jira issue view (surrounding details blurred for privacy) — not a comment buried in the history.</figcaption></figure><p>This sounds cosmetic. It isn’t. A panel is a fundamentally different contract from a comment:</p><ul><li><strong>It’s re-runnable without leaving a mess.</strong> Hit “Re-analyse” and the existing result updates in place. No comment spam, no archaeology through the ticket history to find the latest one.</li><li><strong>It’s stateful.</strong> The panel knows whether an analysis exists, is running, has gone stale, or failed — and shows the right thing for each.</li><li><strong>It’s honest about being AI.</strong> There’s a permanent disclaimer in the footer: Refained is powered by AI and can make mistakes; verify important details before acting.</li></ul><p>Behind the panel is a small state machine — loading, missing (no analysis yet), running, present, polling-timeout, and error — and the genuinely fiddly part was the running state. Analysis happens on a backend that can take anywhere from a few seconds to a minute, so the panel polls for the result. Polling naively either hammers the server or feels sluggish, so it backs off on a fixed curve:</p><pre>// src/panel/App.tsx<br>export const POLL_DELAYS_MS = [<br>  5_000,   // most analyses are done within the first couple of checks<br>  10_000,<br>  20_000,<br>  30_000,<br>  30_000,<br>  30_000,  // ~125s total before we stop and offer a manual &quot;Check now&quot;<br>];</pre><p>The first two checks land while Gemini is most likely still working; the later ones dwell longer so a room full of people opening tickets doesn’t melt the resolver. If the whole curve elapses, the panel doesn’t spin forever — it switches to a “taking longer than usual” state with a “Check now” button. And while a re-analysis is in flight, the old result is dimmed rather than blanked, so you can still read the previous verdict while the new one cooks.</p><p>It’s a small thing, but it’s the difference between a tool that feels alive and one that feels like it’s buffering.</p><h3>Structured scoring, not a summary</h3><p>To make the panel possible, the output had to stop being prose.</p><p>V1 asked Gemini for a paragraph. Refained asks for a <strong>structure</strong>: a star rating (1–5), a raw score (0–100), a list of strengths, a list of weaknesses, and a detailed Markdown write-up. Crucially, it asks for these as <strong>structured JSON output</strong> — Gemini is handed a response schema and returns fields, not paragraphs I have to regex my way through. The whole class of “the model phrased it differently this time and broke my parser” bugs simply went away.</p><p>The default rubric is deliberately plain-spoken:</p><pre>You are a Jira ticket quality analyst.</pre><pre>Rate the ticket on:<br>- Description clarity (could a developer start work from this?)<br>- Acceptance criteria (defined and testable?)<br>- Priority justification (does it match scope/impact?)<br>- Required fields (labels, components, etc.)<br>- For bugs: is there a reproduction path?</pre><pre>Be specific in strengths and weaknesses — quote what&#39;s there or<br>explicitly call out what&#39;s missing. Avoid generic advice.</pre><p>Because the output is structured, the panel can render a star badge, colour a score green or red, and lay out strengths and weaknesses as proper lists. And because there are real numbers behind it, those numbers can do things, which becomes the whole point of the rules engine later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*as0J9JRnJXcQSfmuAQFBoA.png" /><figcaption>Structured output the panel can lay out — and act on. (Specifics blurred; the Priority Check is the AI challenging a triage call.)</figcaption></figure><p>What surprised me is how often the structure pays off in ways I didn’t design. On one bug — an analytics defect that had been quietly corrupting our tracking events in production — the ticket itself was beautifully written and scored a 99. But the analysis didn’t stop at “nice ticket.” It added a <strong>Priority Check</strong> section pointing out that the issue was still marked <em>Low</em> priority, and that, given the blast radius, it should be escalated to High or Highest. The rubric wasn’t just grading the writing; it was quietly challenging a triage decision a human had made and moved on from. That’s the moment structured analysis stopped feeling like spell-check and started feeling like a second reviewer.</p><p>A small thing I’m fond of: Refained can pass image attachments (screenshots, mockups, error dumps) to Gemini’s vision model, but it can’t yet read videos or PDFs. So when a ticket has, say, a screen recording attached, the prompt explicitly tells the model <em>“these files exist but you can’t see them — don’t claim there’s no visual evidence.”</em> It’s a tiny guardrail against the model confidently penalising a reporter who actually did attach a repro.</p><p>Some of that restraint is on purpose. I’m being deliberately conservative with tokens right now — partly plain cost discipline, partly because I’d rather grow the feature set in response to the feedback I’m actually getting than gold-plate things nobody’s asked for yet. Refained is still very much a living project, and the roadmap is long.</p><h3>A dashboard to govern the prompts</h3><p>Here’s the change that, for me, turned Refained from a feature into a product.</p><p>In V1, the prompt was the prompt. If a team wanted Refained to judge their epics differently from their bugs, the answer was “sorry, it’s one rubric for everyone.” That doesn’t scale across an org with dozens of projects, each with its own definition of “a good ticket.”</p><p>So Refained now has a <strong>Workbench</strong> — an admin dashboard, separate from the issue panel, with a sidebar of tabs:</p><pre>Overview · Instructions · Rules · Runs · Analytics · Notifications · Settings · Data</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lsiwqc_wUevKUOG0sU4dA.png" /><figcaption>The Workbench Overview — analyses, quality, approval and sentiment at a glance. (Project names anonymized.)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eO8yQrNgIirp4CaoY4jmA.png" /><figcaption>Write the rubric once, scope it to exactly where it should apply.</figcaption></figure><p>The heart of it is the <strong>Instructions</strong> tab, where you write the rubric in plain English and <strong>scope</strong> it to one of four levels:</p><ul><li><strong>Global</strong> — org-wide guidance.</li><li><strong>Project</strong> — “for this one project specifically…”</li><li><strong>Issue type</strong> — “for Epics…” / “for Bugs…”</li><li><strong>Project + type (compound)</strong> — the most specific: “for Epics <em>in</em> this project…”</li></ul><p>When Refained analyzes a ticket, it stitches the applicable layers together in increasing specificity — global, then project, then type, then compound — so the most specific instruction lands last and wins where they disagree.</p><p>In practice, the scope that earns its keep is <strong>issue type</strong>. We run one rubric for bugs and a completely different one for epics, set at the type level so they apply across <em>every</em> project automatically. A bug gets graded on clarity, reproducibility, evidence, and structure — and gets that Priority Check. An epic gets graded against a weighted rubric that knows what a good epic looks like: business context, hypothesis, requirements, acceptance criteria, each weighted differently and totalling 100. The epic rubric even splits its feedback into two audiences — <em>“For the Product Owner”</em> (what to fix) and <em>“For the Peer Reviewer”</em> (what to double-check) — because the people reading an epic analysis aren’t the same people reading a bug one. None of that is hard-coded. It’s just text in a box, scoped to a type, and it propagates to thousands of tickets without anyone touching the engine.</p><p>This is also where I’ll tell on myself, because the most important design decision here came out of a bug. Originally, your custom instructions were <strong>appended</strong> to that default “ticket quality analyst” rubric. Made sense to me. It was wrong. A team had written a detailed “Epic Reviewer” rubric, and when we layered it on top of the generic quality-analyst contract, the two identities collided — the model was being told to be two different reviewers at once. The exact same prompt that scored a healthy 90-something on its own started emitting <strong>scores of 12</strong>. The rubrics were fighting and dragging each other down.</p><p>The fix was to flip the rule from <em>append</em> to <em>override</em>:</p><pre>// automation-engine/src/gemini/prompts.ts<br>// If ANY scope slot has content, the user&#39;s instructions ARE the system<br>// prompt. The default rubric is suppressed entirely — the user knows<br>// their rubric is final. Only a never-configured tenant falls back to<br>// the default.<br>const parts = hasUserInstruction ? [] : [GLOBAL_INSTRUCTION];</pre><p>If you’ve written your own rubric, it <em>is</em> the prompt. The default only shows up on a cold install. It’s a one-line change that took an embarrassingly long analysis to arrive at, and it’s exactly the kind of thing you don’t find until real teams put real prompts in.</p><h3>Triage at scale: the rules engine</h3><p>A panel is great when you’re looking at one ticket. But the original promise was about backlogs, and you don’t open a backlog one ticket at a time.</p><p>The <strong>Rules</strong> tab lets you define automated runs: write a JQL query (say, project = MOBILE AND type = Bug AND created &gt;= -7d), pick a schedule, and Refained will analyse every matching ticket on its own. A scheduler wakes up every few minutes, works out which rules are due, and fans the work out to the backend. Rules can do more than just score, too:</p><ul><li><strong>Auto-transition</strong> tickets based on quality — e.g. bounce anything scoring below a threshold back to the reporter.</li><li><strong>Post a Slack summary</strong> when a run finishes.</li><li><strong>Index the result into Jira itself</strong>, which is my favourite quiet feature.</li></ul><p>That last one means the score isn’t trapped in Refained’s own storage — it’s written back as a queryable property on the issue, so you can run plain JQL like:</p><pre>refainedRating &gt;= 4 ORDER BY refainedScore DESC</pre><p>Ticket quality became a first-class, sortable Jira field. “Show me our worst ten tickets” stopped being a meeting and became a saved filter.</p><h3>Solving the similarity problem I admitted to</h3><p>In the first article, I confessed that V1’s “find related tickets” feature was just keyword matching, and that I wanted real semantic similarity. This is the part where I get to say I actually did it — with one important twist.</p><p>The pipeline is two stages. First, a <strong>JQL prefilter</strong> narrows the field to a sane candidate set from the same project (recent, relevant issue types, capped at a couple dozen). Then Gemini <strong>re-ranks</strong> those candidates, scoring each 0–100 against the source ticket with a one-line reason.</p><p>The twist is the guardrail. The first naive version of this happily told me two tickets were 85% similar because… they were both bugs in the same project. The model was pattern-matching off the <em>source</em> ticket and inventing a justification, rather than reading the <em>candidate</em>. So the prompt now carries a mandatory <strong>grounding rule</strong>:</p><pre>GROUNDING RULE (mandatory):<br>- Your &quot;reason&quot; MUST cite at least one concrete signal from the<br>  candidate&#39;s OWN summary, description, components, or labels.<br>- If you cannot identify a grounded signal, set score: 0 and<br>  reason: &quot;No grounded overlap.&quot;<br>- DO NOT fabricate a reason from the source ticket&#39;s context. The<br>  candidate text is the only valid evidence.</pre><p>And because a prompt instruction is a suggestion, not a contract, the model has to return a signals array of the concrete terms it matched on — and the engine <strong>drops any high-scoring result that comes back with an empty signals array.</strong> A match has to show its work or it doesn&#39;t count. It turned a hallucination-prone feature into one I actually trust to surface duplicates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*5fv-KXkyfNFbc02AiI2izw.png" /><figcaption>Every match has to cite why — or it doesn’t show up. (Ticket keys and titles blurred.)</figcaption></figure><p>You can see the difference in the output now. On that analytics bug, the similar-tickets list didn’t say “related — same project.” It said things like <em>“both concern the Firebase Analytics SDK integration in the iOS app”</em> and <em>“both deal with faulty event parameters being sent.”</em> Real, checkable reasons, ranked 75% down to 50%. That’s a list a developer can actually use to spot a duplicate before picking up the work.</p><p>The same “context was invisible” instinct drove the <strong>Confluence</strong> integration. Tickets constantly reference design docs and specs by link — including Atlassian’s opaque “tiny links” (/wiki/x/SOMETOKEN). Refained now detects those, resolves them to the real page (decoding the token locally where it can, following the redirect where it can&#39;t), pulls the page content, and feeds it into the analysis. Epics that used to look empty to the analyzer — because all their substance lived in a linked discovery doc — now get judged on what&#39;s actually in them. I watched this land on a big delivery-feature epic whose success metrics and baselines lived entirely in a linked discovery page: the analysis didn&#39;t just read the epic, it reminded the reviewer to confirm the epic&#39;s numbers against the ones in that Confluence doc. It had read both.</p><h3>The backend, rebuilt</h3><p>None of the above would survive contact with a real workload on V1’s plumbing, so the backend got rebuilt too.</p><p>Refained is now split cleanly in two. The <strong>Forge app</strong> is a thin client — the panel, the workbench, the admin page, and a resolver that does storage and orchestration. Everything that actually calls Gemini lives in a separate Node.js <strong>engine</strong> running on AWS Lambda, outside Forge’s runtime sandbox.</p><pre>┌──────────────────┐     bridge invoke      ┌──────────────────┐<br>│   Jira UI        │ ─────────────────────▶ │  Forge resolver  │<br>│   panel /        │ ◀─── KVS / SQL ─────── │  (thin client)   │<br>│   workbench /    │                        └─────────┬────────┘<br>│   admin page     │                                  │ HTTPS + Bearer<br>└──────────────────┘                                  ▼<br>                                          ┌─────────────────────────┐<br>                                          │ front-door Lambda       │<br>                                          │ (Function URL,          │<br>                                          │  512 MB / 30 s)         │<br>                                          └────────────┬────────────┘<br>                                                       │ async invoke<br>                                                       ▼<br>                                          ┌─────────────────────────┐<br>                                          │ worker Lambda           │<br>                                          │ (1024 MB / 15 min)      │<br>                                          │  ↳ self-invoke for      │<br>                                          │     chunked bulk runs   │<br>                                          └────────────┬────────────┘<br>                                                       │ callback<br>                                                       ▼<br>                                              back to the resolver</pre><p>A small, fast <strong>front-door</strong> Lambda (sitting behind a Function URL with bearer auth) takes every request and returns immediately; a beefier <strong>worker</strong> Lambda does the slow Gemini work asynchronously and calls back when it’s done. For a big bulk run, the worker even re-invokes itself in chunks so it never bumps into Lambda’s 15-minute ceiling. (For the record, this went through a Kubernetes phase first — Lambda turned out to be dramatically less to operate for a workload this spiky.)</p><p>On the storage side, the hot paths — analyses, feedback, run history — moved from Forge’s key-value store to Forge SQL, simply because the velocity of bulk runs outgrew what KVS was comfortable with.</p><p>And because not every task needs the same horsepower, Refained now lets you <strong>pick the model per task</strong>. Deep analysis defaults to a capable Flash model; the cheaper, faster Flash-Lite handles similarity ranking and sentiment, where the judgment is lighter. It’s a straightforward cost-versus-depth dial, and you can turn it without touching code.</p><h3>Closing the loop: feedback and sentiment</h3><p>The last piece is making the thing learn what people think of it. Every analysis in the panel has a thumbs-up/thumbs-down (with an optional comment), scoped per user, so your vote is yours. Those votes are stored append-only — I never overwrite an old opinion, so I can see how sentiment shifted as the rubric evolved.</p><p>A background job runs every 15 minutes and uses a lightweight model to classify those free-text comments as positive, neutral, or negative, which feeds the <strong>Analytics</strong> tab. It’s a small human-in-the-loop signal, but it’s the difference between “I think the analyses are good” and “here’s the trend in what users actually told us.”</p><h3>Where it stands today</h3><p>Refained runs across half a dozen product teams now, scoring a couple of hundred tickets a month — bugs and epics, on demand from the panel and in scheduled bulk runs. I’m not going to dress that up with a vanity metric: the feedback sample is still small, and the votes I read most closely are the thumbs-down ones, because they’re where the rubric is too generic or the model too sure of itself. That’s not a failure mode to hide — it’s the entire point of the feedback loop. Each downvote is a pointer to the scope that needs a sharper prompt next.</p><h3>What’s next</h3><p>In the spirit of the first article, a mix of gaps I still want to close and where I’m taking this next:</p><ul><li><strong>One backend shape, not two.</strong> I’ve committed to the AWS Lambda deployment for now — it’s simpler to run and fits this bursty, spiky workload. The Kubernetes shape still lives in the codebase; I’ll dust it off if and when we need to scale Refained much further, rather than pay to maintain both in parallel today.</li><li><strong>Let Refained pick the model itself.</strong> Per-task model selection is powerful but still manual. The obvious next step is letting it choose based on the work — a cheap, fast tier for a tidy bug, the heavier tier for a sprawling epic — instead of an admin pinning it once.</li><li><strong>See more of the evidence.</strong> Vision still can’t read PDFs or video, and plenty of the best reproduction evidence arrives in exactly those formats. It’s on the list; like a lot of things here, I’m holding it back partly to keep token costs honest until the demand is clear.</li><li><strong>Triage support tickets, not just Jira hygiene.</strong> The bigger ambition is wiring Refained into our internal support tooling so it can triage incoming support tickets too — pointing at where in the codebase the fix likely lives, the probable root cause, how often the issue is recurring, and the surrounding detail. The goal isn’t another quality score; it’s handing developers the context they need to actually fix the bug.</li></ul><h3>The actual lesson</h3><p>If the first article was about proving an idea — <em>can an LLM meaningfully help with triage?</em> — This one is about the unglamorous work that turns a yes into something a team can rely on every day. Almost none of the hard parts were the AI. They were the grounding rule that stops it lying, the override logic that stops two rubrics fighting, the panel state machine that makes it feel alive, and the dashboard that lets several teams shape it without me in the loop.</p><p>The AI got better on its own; Google did that. What I had to build was everything around it that makes the AI’s output <em>trustworthy, governable, and queryable</em>. That, it turns out, is the whole job.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vIHXs-giLNxFpmk3itanwA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68efcb37ed1e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ounass/refained-one-year-later-from-a-comment-bot-to-a-triage-platform-68efcb37ed1e">Refained, One Year Later: From a Comment Bot to a Triage Platform</a> was originally published in <a href="https://medium.com/ounass">Ounass</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Logging Off to Tune In: What I Gained from a Social Media Detox]]></title>
            <link>https://medium.com/ounass/logging-off-to-tune-in-what-i-gained-from-a-social-media-detox-1cd7c42e5361?source=rss-7ecd5b93ba49------2</link>
            <guid isPermaLink="false">https://medium.com/p/1cd7c42e5361</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[burnout]]></category>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[mental-health]]></category>
            <dc:creator><![CDATA[Anik Chatterjee]]></dc:creator>
            <pubDate>Sun, 18 May 2025 21:31:08 GMT</pubDate>
            <atom:updated>2025-05-19T08:00:21.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k74Ia_oGedt1qg-tM3w9CQ.jpeg" /></figure><p><em>Let’s be real — I didn’t plan this.</em></p><p>No calendar reminder, no digital detox challenge, no wake-up call from a wellness influencer. It just… <strong>hit me one night.</strong></p><p>I was lying in bed, feeling weirdly sleepy but still glued to my screen, eyes half-closed, neck slightly twisted into an uncomfortable angle. I saw a reel that made me chuckle — silently, of course — then instinctively scrolled to the next one. And the next. And the next.</p><p>Forty-five minutes later, I realized <strong>I wasn’t even enjoying it anymore. I was just stuck in the loop.</strong></p><p>Like a lot of people, I’ve had that nagging thought: “Maybe I should use social media less.”<br>Also, like a lot of people, I did…<em> </em><strong><em>absolutely nothing about it.</em></strong></p><p>A friend once told me, “Why don’t you just control how much time you spend instead of quitting?”<br>Valid point. But here’s the thing — I’m not exactly a paragon of discipline. If something’s giving me dopamine, I’m all in until it starts breaking things. <em>(And this is one trait I know all too well about myself)</em></p><p>And at some point, <strong>it did.</strong></p><h3>I knew something was off. But I still kept scrolling..</h3><p>I’d be in bed, eyes half-open, still swiping through reels or random nonsense at 3 or 4 AM. Then I’d try to force myself to sleep and end up getting a whopping 2 hours before I had to start my workday. <strong>Rinse. Repeat. Regret.</strong></p><p>I started noticing the fallout everywhere — my energy, my focus, my mood. Even writing, which used to be second nature, felt like a chore. I wasn’t burned out, I was just… hijacked. And most of the time, it was the algorithm in the driver’s seat.</p><h3>Personal turning point — what made me stop, finally</h3><p>What actually made me stop — and I mean really stop — was a random Saturday night. I was bouncing between Instagram and my WHOOP stats, just casually checking my screen time and recovery score like it was no big deal. But it hit me: I was spiraling. Again. I needed to <strong>improve</strong>. I needed to be <strong>better</strong>—not for the aesthetic, not for anyone watching, just for <strong>myself</strong>.</p><p><strong>That moment felt small at the time. But it was the switch.</strong></p><h3>Data doesn’t lie — and my WHOOP wasn’t happy either</h3><p>So here’s where things got especially real: I wear a WHOOP band <em>(which I’ll admit, I mostly got because I like data, and as in-depth as possible)</em>. But over time, it stopped being just a wearable and became a reality check.</p><p>My sleep was all over the place. My recovery was consistently low. My resting heart rate was creeping up. HRV was a mess. And yeah, I was waking up feeling like a bus hit me — even on days when I hadn’t done anything to earn that feeling.</p><p>I’ve only been off socials for a week and a half now, but I’m already seeing trends moving in the right direction. Still too early to publish a case study, but let’s just say WHOOP’s not yelling at me as much.</p><p><em>(Should I drop screenshots here? Debating.. Ah, well, maybe I’ll come back to this article in a month’s time and update it.)</em></p><h3>The feeling of space, the strange silence that followed</h3><p>The first night without Instagram felt weird. I was still wired. Still staring at the ceiling. I didn’t sleep immediately — I just lay there, half-anxious, half-relieved. I still had Reddit<em> (I tell myself that’s “info” and not doomscrolling) </em>— but even that started to fade over time.</p><p>Eventually, I’d catch myself reaching for my phone… and stopping.<br>Then one night, I just slept. No scrolling. No screens. Just peace.<br>And it started happening again. And again. And now it feels… <strong>normal</strong>.</p><h3>So what did I get in return?</h3><p>✍️ <strong>I started writing again<br></strong>Not just Jira comments or Slack pings — actual long-form writing. This post? Wouldn’t have happened otherwise.</p><p>🔧 <strong>I made stuff again<br></strong>I started building and fixing the little things I had on the back burner. Scripts. Flows. App ideas. The kind of creative work that gets buried under noise.</p><p>🧘 <strong>I remembered how to sit with silence<br></strong>Less noise, less comparison, fewer hot takes. I stopped reacting so much and started responding more thoughtfully — even if just internally.</p><p>🛌 <strong>Sleep improved<br></strong>Cutting out late-night reels gave my brain a chance to actually shut down. Shocker, I know.</p><p>💪 <strong>I revisited habits I kept sidelining<br></strong>Working out more consistently. Picking up a book, even. Small things. But they make a difference.</p><p>🧠 <strong>Mental clarity<br></strong>This one snuck up on me. I’ve always considered myself more of a closeted extrovert, but this pause gave me the time to focus inward instead of spending hours daydreaming about someone else’s curated life. No more letting influencer reels dictate my standards for what life should look like.</p><p>📲 <strong>Still kept up with memes<br></strong>Because come on. I’m not <em>that</em> detached.</p><p>🎧 <strong>Started listening to music again<br></strong>And not just in the background. Full albums. Playlists. Late-night deep house hits that reminded me what it’s like to enjoy things for their own sake, not just while multitasking.</p><p>If you want a vibe shift, here’s one I’ve been looping: <a href="https://open.spotify.com/playlist/5tg8Q4jHU56BihzUoIClvC">Late-night Deep House • Spotify</a> — headphones recommended.</p><p>🤝 <strong>Staying socially connected<br></strong>Even though I went off socials, I didn’t socially exclude myself. I’m still very much in touch with my people — we still catch up, make plans, send memes, and talk about random life stuff. The only difference? I’m not doomscrolling between every interaction.</p><h3>What I Don’t Miss</h3><ul><li>I don’t miss the tired, dull-eyed mornings.</li><li>I don’t miss the brain fog from app-hopping every 10 seconds.</li><li>I don’t miss the endless mindless scrolling that left me feeling mentally drained and questioning my existence.</li><li>And I <strong><em>definitely</em></strong> don’t miss pretending that doomscrolling is “just how I relax.”</li></ul><h3>You don’t have to go full hermit</h3><p>I’m not saying delete your Instagram and disappear into the woods. But if you’ve ever caught yourself doomscrolling and feeling worse, maybe it’s worth trying a <strong>step back</strong>.</p><p>You don’t have to commit to a full detox. Start by removing the apps from your phone. Or just log out. Or mute everyone except your 5 favorite accounts. Whatever works.</p><p>I just put up a quick story saying I’d be off for a while and to message me on WhatsApp if it was important.</p><p>Turns out, that was <em>enough</em>.</p><h3>Final Thoughts</h3><p>We’re all just trying to stay sane in a world that throws a million things at our attention span every day. I didn’t expect logging off to be the reset I needed, but it really was.</p><p>I’m not anti-social media. I’m just learning to be <em>more</em> intentional with it.</p><p>So if you’ve been meaning to take a break, or even just need a bit of space from the noise, take this as a sign. One that’s written by a real human, not algorithmically inserted between two ads for investments and an app you’ll never use.</p><p><strong>You’ve got more attention than you think. Don’t waste it.</strong></p><h3>TL;DR</h3><ul><li>Social detox ≠ anti-social</li><li>I write more. Think better. Sleep better. (WHOOP agrees.)</li><li>Creative energy is back.</li><li>Still meme-aware.</li><li>You don’t have to disappear — just disconnect with intention.</li></ul><p><strong>That’s it. Go touch grass. Or write something. Or both.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1cd7c42e5361" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ounass/logging-off-to-tune-in-what-i-gained-from-a-social-media-detox-1cd7c42e5361">Logging Off to Tune In: What I Gained from a Social Media Detox</a> was originally published in <a href="https://medium.com/ounass">Ounass</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[refAIned: Leveraging AI to Streamline Bug Triage in Jira]]></title>
            <link>https://medium.com/ounass/refained-leveraging-ai-to-streamline-bug-triage-in-jira-d09376c33c75?source=rss-7ecd5b93ba49------2</link>
            <guid isPermaLink="false">https://medium.com/p/d09376c33c75</guid>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Anik Chatterjee]]></dc:creator>
            <pubDate>Sat, 17 May 2025 14:16:00 GMT</pubDate>
            <atom:updated>2025-05-18T12:59:59.216Z</atom:updated>
            <content:encoded><![CDATA[<p>Bug triage is one of those product rituals that feels essential yet tedious. For most teams, especially those dealing with legacy systems or overlapping domains, it becomes a maze of vague tickets, repetitive issues, and knowledge locked in someone’s brain (or lost Slack threads). My team and I ran into this problem enough times to decide it was worth building a solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*crxSuUcVc6ay0S9Y6iMvAw.png" /><figcaption>refAIned User Interface</figcaption></figure><p>That’s how <strong>refAIned</strong> was born: a lightweight, AI-powered Jira app built using Forge, designed to help teams identify, understand, and action bugs faster through contextual AI recommendations.</p><h3><strong>The Problem</strong></h3><p>Let me paint a familiar picture:</p><ul><li>You open a bug ticket with two sentences of context.</li><li>You manually search Jira for similar bugs.</li><li>You message three devs who “might remember” something similar.</li><li>You end up cloning an old ticket, updating a few lines, and hoping it lands somewhere helpful.</li></ul><p>This workflow not only wastes time but also leads to poor triaging, inconsistent labels, and a backlog filled with noise. One can only have so many meetings to keep refining tickets manually. It’s costly in terms of time.</p><p>What we needed was a way to make Jira “remember” what happened in the past — and use that to guide current ticket hygiene.</p><h3><strong>What is refAIned?</strong></h3><p>refAIned is a Jira Forge app that combines:</p><ul><li><strong>RAG (Retrieval-Augmented Generation)</strong> for surfacing historical tickets</li><li><strong>Google Gemini</strong> for summarization and recommendation</li><li><strong>Jira REST APIs</strong> to push intelligent suggestions directly to the ticket</li></ul><p>Think of it as your AI-powered Jira assistant that helps you clean up, enrich, and align bug reports using real historical context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cSlTFxHpVJpBoj8U9f1smg.gif" /></figure><h4><strong>Use Cases</strong></h4><ul><li><strong>QA Teams</strong> can reference past regressions quickly during test cycles</li><li><strong>Engineers</strong> can see related issues without deep-diving manually</li><li><strong>Teams</strong> can move tickets through the triage process faster with better suggestions and fewer blockers</li></ul><h4><strong>How It Works</strong></h4><ol><li><strong>Trigger:</strong> A user invokes refAIned from a Jira ticket.</li><li><strong>Embedding:</strong> The current ticket is processed to extract context, <em>but is not yet converted to embeddings.</em></li><li><strong>Search:</strong> It performs <em>keyword-based matching</em> against previously cached ticket content.</li><li><strong>Prompt Construction:</strong> refAIned builds a prompt including the <em>current ticket and summaries of similar issues.</em></li><li><strong>Gemini Response:</strong> Google Gemini processes the prompt and returns:<br>- A brief summary of similar issues<br>- Suggestions for components, labels, or status updates</li><li><strong>Jira Update:</strong> Suggestions can be reviewed and applied directly using Jira’s REST API.</li></ol><h3><strong>Architecture Diagram</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ELlyFyYy54Lc-h3y7B9Snw.jpeg" /></figure><h3><strong>Tech Stack</strong></h3><ul><li><strong>Atlassian Forge</strong> (Jira App Platform)</li><li><strong>@forge/storage</strong> for key-value storage (chunked historical data)</li><li><strong>Gemini API</strong> for LLM-powered responses</li><li><strong>Jira REST API v2</strong> for updating ticket fields</li></ul><h3><strong>Key Implementation Snippets</strong></h3><h4><strong>1. Defining the Jira Issue Action (manifest.yml)</strong></h4><pre>modules:<br>  jira:issueAction:<br>    - key: gemini-ai-action<br>      resource: main<br>      resolver:<br>        function: resolver<br>      title: Ask refAIned<br>      description: Get AI assistance for your ticket<br>      icon: assets/logo.png<br>      viewportSize: large<br>      customUI: true<br><br>  function:<br>    - key: resolver<br>      handler: resolver.handler</pre><p><strong>Forge App Scopes and Permissions</strong></p><p>Forge requires apps to explicitly declare permissions in manifest.yml. These scopes ensure transparency and enforce access control.</p><pre>permissions:<br>  external:<br>    fetch:<br>      backend:<br>        - &quot;*.googleapis.com&quot;   # For Gemini API<br>        - &quot;*.atlassian.net&quot;    # Optional Atlassian services<br>  scopes:<br>    - read:jira-work<br>    - write:jira-work<br>    - read:jira-user<br>    - storage:app<br>    - read:confluence-content.summary<br>    - read:confluence-content.all<br>    - read:content:confluence<br>    - read:page:confluence<br>    - search:confluence</pre><h4><strong>2. Fetching Jira Ticket Details (src/resolver.js)</strong></h4><pre>import api, { route } from &quot;@forge/api&quot;;<br><br>const fetchIssueDetails = async (issueKey) =&gt; {<br>  const issueResponse = await api.asApp().requestJira(route`/rest/api/3/issue/${issueKey}`);<br>  const commentsResponse = await api.asApp().requestJira(route`/rest/api/3/issue/${issueKey}/comment`);<br>  const issueData = await issueResponse.json();<br>  const comments = await commentsResponse.json();<br>  return { issueData, comments };<br>};</pre><h4><strong>3. Frontend ↔ Backend via Forge Bridge (src/index.jsx)</strong></h4><pre>import * as bridge from &#39;@forge/bridge&#39;;<br><br>useEffect(() =&gt; {<br>  const fetchDetails = async () =&gt; {<br>    const result = await bridge.invoke(&#39;fetchIssueDetails&#39;);<br>    if (result.success) setTicketDetails(result.data);<br>  };<br>  fetchDetails();<br>}, []);<br><br>const onSubmit = async () =&gt; {<br>  const result = await bridge.invoke(&#39;refineTicket&#39;, { prompt });<br>  // Handle AI suggestions<br>};</pre><h3><strong>Implementing Retrieval-Augmented Generation (RAG)</strong></h3><h4><strong>1. Storing and Managing Historical Data</strong></h4><p>RefAIned needs to store and access data from past Jira tickets to provide relevant historical context. Due to Forge’s storage limits, we chunk ticket data into smaller parts to store it safely.</p><p><strong># Chunking Data for Forge Storage (src/resolver.js)</strong></p><pre>async function cacheRawProjectTickets(projectKey, tickets) {<br>  const CHUNK_SIZE = 200000;<br>  // Estimate average ticket size...<br>  // Split, store as raw_tickets_&lt;project&gt;_chunk_&lt;n&gt;<br>  // Store metadata listing all chunks<br>}</pre><pre>INFO    17:19:49.368  60b60e03-1afe-4583-957e-41684c51878a  Found valid metadata with 432 tickets in 4 chunks<br>INFO    17:19:50.027  60b60e03-1afe-4583-957e-41684c51878a  Retrieved chunk 0 with 125 tickets<br>INFO    17:19:50.027  60b60e03-1afe-4583-957e-41684c51878a  Retrieved chunk 1 with 125 tickets<br>INFO    17:19:50.028  60b60e03-1afe-4583-957e-41684c51878a  Retrieved chunk 2 with 125 tickets<br>INFO    17:19:50.028  60b60e03-1afe-4583-957e-41684c51878a  Retrieved chunk 3 with 57 tickets<br>INFO    17:19:50.028  60b60e03-1afe-4583-957e-41684c51878a  Retrieved total 432 tickets from cache<br>INFO    17:19:50.028  60b60e03-1afe-4583-957e-41684c51878a  Using 432 cached tickets for simple search<br>INFO    17:19:50.028  60b60e03-1afe-4583-957e-41684c51878a  Searching for relevant tickets among 432 tickets</pre><p><strong># Leveraging Confluence for Broader Context (and Future Vectorization)</strong></p><p>In addition to historical tickets, documentation in Confluence provides critical context (architecture, UAT notes, retrospectives). refAIned enhances Gemini prompts by:</p><ul><li><strong>Fetching &amp; Caching</strong> relevant pages from pre-defined spaces (e.g. “Investigations”)</li><li><strong>Keyword-based Matching</strong> to identify top documents</li><li><strong>Prompt Augmentation</strong> with summaries of top-matching pages</li></ul><h4><strong>2. Fetching Historical Data for RAG (src/resolver.js)</strong></h4><pre>async function fetchHistoricalBugs(projectKey, startDate) {<br>  const jql = `project = &quot;${projectKey}&quot; AND issuetype = &quot;${issueType}&quot; AND created &gt;= &quot;${startDate}&quot; ORDER BY created DESC`;<br>  let allIssues = [];<br>  let startAt = 0;<br><br>  while (true) {<br>    const issuesResponse = await api.asApp().requestJira(<br>      route`/rest/api/3/search?jql=${jql}&amp;startAt=${startAt}&amp;maxResults=50&amp;fields=key,summary,description,status,comment`<br>    );<br>    const batchData = await issuesResponse.json();<br>    allIssues = allIssues.concat(batchData.issues);<br>    if (startAt + 50 &gt;= batchData.total) break;<br>    startAt += 50;<br>  }<br><br>  return allIssues.map(issue =&gt; ({<br>    key: issue.key,<br>    summary: issue.fields.summary,<br>    description: issue.fields.description,<br>    comments: issue.fields.comment?.comments || [],<br>    status: issue.fields.status?.name,<br>    fullText: `Ticket: ${issue.key}\nSummary: ${issue.fields.summary}\nDescription: ${issue.fields.description}`<br>  }));<br>}</pre><p><strong>Future State</strong></p><p>In future versions, Confluence pages will be embedded into <strong><em>vectors</em></strong> and stored in a vector DB (like Pinecone or Weaviate). This will enable <strong><em>semantic</em> <em>search</em></strong>, meaning the AI can retrieve contextually similar documents even without exact keyword matches.</p><h4><strong>2. Constructing the RAG Context Prompt (src/modelContext.js)</strong></h4><pre>const generateRagContextPrompt = (similarTickets) =&gt; {<br>  if (!similarTickets?.length) return &quot;&quot;;<br>  let context = &quot;Related tickets that might help answer this question:\n\n&quot;;<br><br>  similarTickets.forEach((ticket, index) =&gt; {<br>    context += `Ticket ${index + 1}: ${ticket.key}\n`;<br>    context += `Summary: ${ticket.summary}\n`;<br>    context += `Description: ${ticket.description?.substring(0, 300)}...\n`;<br>    if (ticket.resolution) context += `Resolution: ${ticket.resolution}\n`;<br>    if (ticket.comments?.length) {<br>      const lastComment = ticket.comments[ticket.comments.length - 1]?.body || &#39;&#39;;<br>      context += `Latest comment: ${lastComment.substring(0, 200)}...\n`;<br>    }<br>    context += &#39;\n&#39;;<br>  });<br><br>  return context;<br>};</pre><h4>3. <strong>Enhancing AI Context with modelContext.js</strong></h4><p>Beyond dynamic ticket and RAG context, refAIned enriches Gemini with static knowledge.</p><ul><li><strong>Standard AI Instructions</strong> <em>(tone, format, do’s and don’ts)</em></li><li><strong>Project Metadata</strong> <em>(technologies, domains, ticket types)</em></li><li><strong>Common Acronyms</strong> <em>(e.g., SC = Store Credit)</em></li></ul><ol><li><strong>Standard Instructions (src/modelContext.js)</strong></li></ol><pre>const STANDARD_INSTRUCTIONS = `<br>You are refAIned, an AI assistant integrated into Jira. Your goal is to provide helpful, accurate responses based on the ticket information provided and your knowledge of best practices.<br><br>When answering:<br>1. Be concise but complete<br>2. Provide specific, actionable advice when possible<br>3. Reference similar issues if they&#39;re relevant<br>4. Format responses with proper markdown<br>5. Acknowledge limitations when unsure<br><br>Avoid:<br>1. Making assumptions about missing details<br>2. Promising timelines<br>3. Speculating about business decisions<br>`;</pre><p>2. <strong>Project-Specific Contexts (src/modelContext.js)</strong></p><pre>const PROJECT_CONTEXTS = {<br>  &#39;ONM&#39;: {<br>    description: &#39;Ounass Magento project&#39;,<br>    technologies: [&#39;Magento&#39;, &#39;PHP&#39;, &#39;MySQL&#39;, &#39;Redis&#39;],<br>    keyComponents: [&#39;Catalog&#39;, &#39;Cart&#39;, &#39;Checkout&#39;, &#39;Payments&#39;]<br>  },<br>  &#39;ONFE&#39;: {<br>    description: &#39;Ounass Frontend project&#39;,<br>    technologies: [&#39;React&#39;, &#39;Next.js&#39;, &#39;TypeScript&#39;],<br>    keyComponents: [&#39;Homepage&#39;, &#39;PLP&#39;, &#39;PDP&#39;, &#39;Account&#39;]<br>  }<br>};<br><br>// ... other project details ...<br><br>const generateTicketContextPrompt = (ticketData) =&gt; {<br>  const projectKey = ticketData.key.split(&#39;-&#39;)[0];<br>  const projectContext = PROJECT_CONTEXTS[projectKey];<br><br>  let contextPrompt = `You are refAIned, an AI assistant for Jira. You&#39;re currently viewing ticket ${ticketData.key}.<br>Summary: ${ticketData.summary}`;<br><br>  if (projectContext) {<br>    contextPrompt += `\n\nProject Context (${projectKey}):\n- ${projectContext.description}\n- Technologies: ${projectContext.technologies.join(&#39;, &#39;)}\n- Components: ${projectContext.keyComponents.join(&#39;, &#39;)}`;<br>  }<br>  return contextPrompt;<br>};<br><br>// ... (JIRA_PRIORITY_NAMES, PRIORITY_CONTEXTS, etc.) ...</pre><p>This preloaded information helps Gemini respond with <strong><em>greater accuracy and domain awareness.</em></strong></p><h4>4. Calling Gemini with RAG Context (src/resolver.js)</h4><pre>const callGeminiAPIwithRAG = async (prompt, ticketData, projectKey) =&gt; {<br>  const contextPrompt = generateTicketContextPrompt(ticketData);<br>  let ragContext = &quot;&quot;;<br><br>  const historicalBugs = await fetchHistoricalBugs(projectKey, &quot;2024-01-01&quot;);<br>  const relevantTickets = findRelevantTicketsSimple(prompt, historicalBugs);<br>  ragContext += generateRagContextPrompt(relevantTickets);<br><br>  const fullContext = `${contextPrompt}\n\n${ragContext}\n\nUser Question: ${prompt}`;<br><br>  const response = await api.fetch(`https://generativelanguage.googleapis.com/v1/models/gemini-1.5-flash:generateContent?key=${API_KEY}`, {<br>    method: &quot;POST&quot;,<br>    headers: { &quot;Content-Type&quot;: &quot;application/json&quot; },<br>    body: JSON.stringify({ contents: [{ parts: [{ text: fullContext }] }] })<br>  });<br><br>  const data = await response.json();<br>  return data.candidates[0].content.parts[0].text;<br>};</pre><h3><strong>Challenges</strong></h3><ul><li><strong>API Limits:</strong> Jira’s Forge and REST API rate limits require batching updates.</li><li><strong>Storage Quotas</strong> in Forge</li><li><strong>Token Management:</strong> Gemini API needed secure token handling from Forge.</li><li><strong>Prompt Shaping:</strong> Getting useful summaries from Gemini took prompt iteration and data pruning.</li><li><strong>Lack of Semantic Vector Search</strong> (currently keyword-based)</li></ul><h3><strong>Future Plans</strong></h3><ul><li><strong>Migrate to vector-based semantic search</strong> and not rely on text-based analysis</li><li><strong>Add feedback loop</strong>: Let users thumbs-up/down Gemini’s suggestions</li><li><strong>Build out a Slack integration</strong> for ticket summaries</li><li><strong>Add support</strong> for additional issue types beyond bugs</li><li><strong>Include confidence scoring</strong> for suggestions</li><li><strong>Integrate with other services</strong> or include application embeddings to suggest solutions to tickets</li></ul><h3><strong>Conclusion</strong></h3><p><strong>refAIned</strong> is an experiment in making Jira smarter, not more bloated. By applying LLMs and RAG to everyday triage, we’re not only cleaning up noisy backlogs but enabling better decision-making from the start.</p><p>While this app is currently an <strong>internal tool</strong> and very much a <strong>work in progress</strong>, the vision is broader. With further enhancements — like semantic vector search, Slack integrations, and cross-project applicability — refAIned has the potential to evolve into a <strong>fully-fledged marketplace app</strong> for the wider Jira community.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*mvPv0TTyoRg3oxZNnAx66w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*E2Bwd7v7qEqx-3d8mCkSTw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d09376c33c75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ounass/refained-leveraging-ai-to-streamline-bug-triage-in-jira-d09376c33c75">refAIned: Leveraging AI to Streamline Bug Triage in Jira</a> was originally published in <a href="https://medium.com/ounass">Ounass</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a Dynamic Onboarding Experience on Jira: A Step-By-Step Guide]]></title>
            <link>https://medium.com/ounass/creating-a-dynamic-onboarding-experience-on-jira-a-step-by-step-guide-1c3a841f53e8?source=rss-7ecd5b93ba49------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c3a841f53e8</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[groovy]]></category>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[jira]]></category>
            <dc:creator><![CDATA[Anik Chatterjee]]></dc:creator>
            <pubDate>Wed, 18 Mar 2020 10:31:57 GMT</pubDate>
            <atom:updated>2020-03-19T17:31:41.863Z</atom:updated>
            <content:encoded><![CDATA[<p>Onboarding is essential across all companies. Imagine you’re a new employee, walking into the office where everyone is unknown to you. You’re excited about where this journey is going to take you but have no idea where to begin. In this case, if you’re presented with a proper onboarding kit, you have a goal set in front of you that’s both motivating and helps you build a proper impression towards the team you’re about to start working with. First impressions matter quite unquestionably. Even if this is looked at from a different perspective, as companies grow they implement new methodologies of working which becomes quite an essential part of their culture. “What we do” and “How we do it” matters and without an onboarding process in place, all a new joiner can rely on is their past experience and execute things on their own without having much in-depth knowledge on the ways of working followed by the company, both culturally and technically which could potentially prove to be concerning down the line. This uncertainty can most definitely be disentangled by onboarding an employee via a structured process in place.</p><p>As our team at Al Tayer Digital grew, the aforementioned reasons became more evident and it was necessary to implement a proper framework in place. It was essential for new joiners to be familiar with the intricacies of our systems, tools, &amp; architectures which are in place in the company, the “why’s” and the “how’s” of their job domains, getting to know their fellow peers, so on and so forth.</p><p>In addition to this, it also is crucial to make sure that our onboarding process is goal-driven and consistent across all new joiners. Having a set of tasks laid out for them helps them keep track of what needs to be done next, as well as makes it structured and successively progressive.</p><p>We sat down to brainstorm on how to approach this and achieve what we sought out to do. We jotted down what we needed<br>* <strong>A tool to work with —</strong> We had Jira for task creation as well as Confluence for documentation<br>* <strong>A system in place —</strong> We started with common tasks for all new joiners and role-specific tasks for the roles employees were being onboarded under. Based on the roles, these were further divided into<br> ** <strong><em>Meet —</em></strong><em> Where new joiners would be asked to meet and sit down with other peers<br> ** </em><strong><em>Read —</em></strong><em> Where new joiners would be asked to go through and read documentation mentioned on the Jira ticket<br> ** </em><strong><em>Listen —</em></strong><em> Watch videos related to organizational events or other miscellaneous videos to understand further how the company operates<br> ** </em><strong><em>Execute —</em></strong><em> Execution of test cases or code<br> ** </em><strong><em>Write —</em></strong><em> Writing test cases or code</em><br>* <strong>Changeable Parameters —</strong> We needed parameters that could be configured by changing values on the fields on Jira. We here at <em>Al Tayer Digital</em> have two main teams; <em>Ounass &amp; Nisnass</em>. Based on the brand the new member joined under, the peers they’d meet would differ, so the brand and name fields should be <em>dynamic.</em><br>* <strong>Process Automation— </strong>I happened to be familiar with writing scripts on Jira so I was more than happy to be a part of this project and be able to write code to automate this process.</p><p>Now that we had an idea of what needs to be done, we started executing upon our action points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qLm48BTdvUw1skevuSekcA.gif" /><figcaption>Onboarding Kanban Board on DO Project</figcaption></figure><p>The first stage was setting up an ‘Onboarding’ project on Jira. This would be the project where all the tasks would reside with a Kanban board associated with it so tasks can be transitioned easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O4cE7w2jUq4tjKkwlZofCg.png" /><figcaption>Onboarding Task Sheet Snippet</figcaption></figure><p>Next was to map the task types to their respective summaries and descriptions in a tabular format which would later be mapped to the summary and description fields of the tasks. Description text was also modified to contain parameters such as {BuddyName}, {LineManagerName}, {BrandName}, and so on to act as placeholders and be dynamically changed by the script.</p><p>After the sheet was ready to go, it was essential for us to cover the parameters and map each of them to a separate field on the Jira ticket creation screen, so they can be replaced by the inputs in the fields provided by the creator. Since screen configurations on Jira are associated withissuetypes (ticket type), I created a task type namely ‘Onboarding’ and associated this screen exclusively for that ticket type. This is how the creation screen looks like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ESYyiGWPq2t5V89505tptA.gif" /><figcaption>Onboarding Issue Create Screen</figcaption></figure><p>After the fields on Jira were configured and embodied onto the create screen, the final remaining piece of the puzzle was to automate the task creation process.</p><p>Doing it through Google Sheets seemed to be an option I wanted to explore by invoking the <em>Sheets API v4</em>, and Jira’s <em>Rest API</em> is powerful in itself so I set out to work on this.</p><p>Before writing the script, I set a condition on Scriptrunner that this script will execute only if the condition issue.issueType.name.match(‘^(Onboarding)$’) != null(Wherein it detects that the issue type is called ‘Onboarding’) is met to avoid any unnecessary triggers. I also set the script to execute the “Create Issue’ event and only for the Onboarding (DO) project. Now that the fail-safes were in place, I started writing code.</p><p>First and foremost, we needed data for the tasks. To be able to read the data, I invoked the get response to Sheets API and passed the spreadsheetId, sheetRange, &amp; API_key as parameters and mapped them to a <em>list</em> variable. Since I only want data from the first three columns, I’ve specified the sheet range as A:C.</p><pre>def getColumns = get(“https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/values/(Sheet1!A:C}?key={API-KEY}&quot;)<br>  .asObject(Map)<br>  .getBody()<br>def colVal = getColumns.values</pre><p>After getting the sheet object, now we need to obtain the fields object from Jira to get the fields we want, such as Line Manager Name, Buddy Name, and the rest. We call the field object and run it once (since API requests are an expensive function in terms of execution time) and get the list of all the fields.</p><pre>@Field customFields = get(&quot;/rest/api/2/field&quot;)<br>.asObject(List)<br>.body<br>.findAll { (it as Map).custom } as List&lt;Map&gt;</pre><p>We pass the field name as an argument when calling the function below</p><pre>def getField(x)<br>{<br>  def customFieldId = customFields.find { it.name == x }?.id<br>  def customF = issue.fields[customFieldId]<br>  def customFVal<br>  if(customF != null)<br>  {<br>    customFVal = “[“ + customF.displayName + “|~accountid:” + <br>    customF.accountId + “]” as String<br>  }<br>  else<br>  {<br>    customFVal = “[$x not set]”<br>  }<br>  return customFVal<br>}</pre><pre>def buddyName = getNameField(&#39;Buddy Name&#39;)<br>println buddyName</pre><pre><strong>//output:<br>//</strong><strong>[John Doe|~accountid:5c76544ea7a4c9433528ca2e] <br>//if buddy is set as John Doe for example<br>//else<br>//[Buddy Name not set]</strong></pre><pre>def lineManagerName = getNameField(&#39;Line Manager Name&#39;)<br>println lineManagerName</pre><pre><strong>//output:<br>//</strong><strong>[Jane Doe|~accountid:9b7623235fc94335oitssb2e] <br>//if buddy is set as Jane Doe for example<br>//else<br>//[Line Manager Name not set]</strong></pre><p>to help us convert the field value to a @Mention tag. Jira does not recognize a string if it is preceded with an @ symbol. It needs to be in a special format, i.e [John Doe|~accountid:5c76544ea7a4c9433528ca2e]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyKbajurxNREgyIl0dumMw.png" /><figcaption>Depicting how the value from the name field should replace the parameter on the Jira ticket</figcaption></figure><p>Next step would be to get the transpose of our parent list structure which was mapped to a list variable. We get the index values of each of the child lists and map them to a separate list by:</p><pre>println colVal </pre><pre><strong>//output: <br>//[[type1, summary1, description1],[type2, summary2, description2],[type3, summary3, description3]...]</strong></pre><pre>def type = colVal*.getAt(0)<br>def summ = colVal*.getAt(1)<br>def desp = colVal*.getAt(2)</pre><pre>println type</pre><pre><strong>//output:<br>//type = [type1, type2, type3,.....]</strong></pre><pre>println summ</pre><pre><strong>//output:<br>//summ = [summary1, summary2, summary3,.....]</strong></pre><pre>println desp</pre><pre><strong>//output:<br>//desp = [description1, description2, description3,.....]</strong></pre><p>As a fail safe to avoid creating any tasks without descriptions or without summaries, I assert the column size values against each of the three columns.</p><pre>assert type.size() == summ.size() &amp;&amp; assert type.size() == desp.size() &amp;&amp; assert summ.size() == desp.size()</pre><p>Now that we have the column lists, we need to run a regex (or regular expression) check and replace those tags on the third list, i.e the description list. (Since Jira does not support tagging on task summaries). The following lists</p><pre>println desp</pre><pre><strong>//output:<br>//[description1, description2, description3,.....]</strong></pre><pre>println fieldString</pre><pre><strong>//output:<br>//[{EmployeeName}, {BuddyName}, {LineManagerName},.....]</strong></pre><pre>println fieldVal</pre><pre><strong>//output:<br>//[employeeName, buddyName, lineManagerName,.....] &lt;- this is a list of variables</strong></pre><p>are passed as arguments to the function below</p><pre>println desp</pre><pre><strong>//output:<br>//[When you join the organization, we are setting a buddy to help you with orientation. <em>{BuddyName}</em> is going to be your buddy. I’ll make sure to introduce you two, .............]</strong></pre><pre>def regexFunc(a, x, y)<br>{<br>  def temp = []<br>  a.eachWithIndex { it, s -&gt;<br>    x.eachWithIndex { xit, i -&gt;<br>      def pattern = ~/\{([${x[i]}]*)\}/<br>      def result = pattern.Matcher(a[s])<br>      result.eachWithIndex { rit, r -&gt;<br>        def getRes = result[r][0]<br>        if(x[i] == getRes)<br>        {<br>          a[s] = a[s].replace(getRes, y[i])<br>        }<br>      }<br>    }<br>    temp.add(a[s])<br>  }<br>  return temp <br>}</pre><pre>desp = regexFunc(desp, fieldString, fieldVal)<br>println desp</pre><pre><strong>//output:<br>//[When you join the organization, we are setting a buddy to help you with orientation. <em>@Username</em> is going to be your buddy. I’ll make sure to introduce you two, ..............]<br></strong></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*miUxDRPBO_S96YR8HZmOQA.png" /><figcaption>If buddy name is set then…</figcaption></figure><p>After this function has executed, if the Buddy Name field is set as let’s say <a href="https://medium.com/u/7ecd5b93ba49">Anik Chatterjee</a>,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o_W0ano247zjgTiY2kkkKQ.png" /><figcaption>…this becomes…</figcaption></figure><p>the {BuddyName} parameter inside the text will be replaced with <a href="https://medium.com/u/7ecd5b93ba49">Anik Chatterjee</a> on the task description.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xs_3F_Ul0VObxq4LlYL5hw.png" /><figcaption>…this…</figcaption></figure><p>The tag also notifies the user being tagged on Jira via its notification system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scZeKa-ZP72abol81ILVpg.png" /><figcaption>…else this if field is empty.</figcaption></figure><p>If no value is set for the field, the parameter gets replaced with [$fieldname not set] (in this case, [Buddy Name not set])</p><p>Now that we have the values we need, we need to perform a REST call to write these values to Jira. We first get the issue id by performing a GET request as follows and map the issue’s ID to a variable</p><pre>@Field getIssue = get(“/rest/api/2/issue/” + issue)<br> .asObject(Map)<br> .getBody()</pre><pre>def parentIssueId = getIssue.id</pre><p>Since we are also dynamically assigning the user for every task that’s been created, we also store the assignee’s accountId in a separate field called, which will be used to set the assignee on the sub tasks, and simultaneously the parentIssueId will set the sub task&#39;s parent to be that of the <strong>Onboarding</strong> issue type. issueTypeId and projectId will be the ID values of both the sub-task issue type number on Jira as well as the DO project’s number (in our case). In our case, they are 10009 and 12755 respectively. Now that we our variables, we call this function and pass our summary and description values as arguments</p><pre>def restFunc(x, y)<br>{<br>  def respA = post(“/rest/api/2/issue”)<br>    .header(“Content-Type”, “application/json”)<br>    .body(<br>      fields: [<br>      “project” : [<br>        “id”: projectId<br>        ],<br>      “issuetype”: [<br>        “id”: issueTypeId<br>        ],<br>      “parent”: [<br>        “id”: parentIssueId<br>        ],<br>      “summary”: x,<br>      “description”: y,<br>      “assignee”: [<br>        “id”: assigneeAccountId<br>        ],<br>     ])<br>    .asObject(Map)<br>  assert restFunc.status == 200 <strong>//whether request was successful</strong><br>}</pre><p>This can be done in any preferred method, but I use a switch case since there are multiple variations to which tasks need to be read and posted in miscellaneous cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/1*4HZyKZyAfNBOXV_L-zL11A.png" /><figcaption>If role is set as Fullstack Developer, then…</figcaption></figure><p>This switch is done based on the value provided to the ‘Role’ field on Jira.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-ZnCck7ADqb-mIQaHq4AQ.png" /><figcaption>…only the fields in green are being passed to the function to be written onto Jira as separate tasks.</figcaption></figure><p>As depicted in the example sheet snippet on my left, if let’s say a person was joiner as a ‘Fullstack Developer’. Based on the role that’s being set on the onboarding task screen, only the tasks in green would be made for that person, and not the ones in red. This is the same with any other field value for the ‘Role’ field wherein the tasks created and assigned to the person include the <strong>common</strong> tasks and <strong>role-specific</strong> tasks.</p><p>I’ve depicted an example of a successive POST request below</p><pre><strong>INFO -</strong> Serializing object into &#39;interface java.util.Map&#39;<br><strong>INFO -</strong> POST /rest/api/2/issue asObject Request Duration: 1200ms</pre><p>and also the nano time log from execution to completion of all the requests (in our case, role name was ‘Product’). Our product role comprises of 28 tasks. Execution time took about 36684ms to complete execution.</p><blockquote>request duration * number of API calls + additional cost (in time) incurring operations = total execution time</blockquote><pre><strong>INFO -</strong> Execution time in nanoseconds : 36684034154<br><strong>INFO -</strong> Execution time in milliseconds : 36684</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AdB0HqcJi4tQX3ljayBrVg.png" /><figcaption>After a successful POST function, a new sub-task is created on Jira and the fields…</figcaption></figure><p>A POST request duration to an issue in our case could be anywhere between 900ms and 1600ms with variance depending on the number of fields being written. Since we also performed three other API calls in addition to this to get the Sheet values, get the created issue and get the Jira fields, this checks out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ez7r-ASMPA1B6OsXORXH4g.png" /><figcaption>…get written onto that sub-task (notice how the parameter has also changed to a mention tag)</figcaption></figure><p>After a POST function succeeds for issue creation , a new sub-task is made with the summary and description both from the sheet. The assignee is the same that’s set on the parent / main task during creation. Then the next values in the list are passed as arguments to the function and another POST function is executed as the next sub-task in the ‘Onboarding’ Epic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*WzRk7kF1YjLMdvFVw1vsyA.gif" /><figcaption>Demonstration of the tasks being made on Jira on jirabot for Slack</figcaption></figure><p>On my left is a demonstration of tasks being created in real-time as visualized on our ‘jirabot’ we use on Slack. Since the switch case is sequentially executed, the API requests do not precede or succeed the other without adhering to the sequence, allowing us to structure our tasks wherein one has to be done after the previous one has been accomplished by the assignee in order for them to be on track and the process be streamlined.</p><p><strong>And there we have it.</strong> With Jira being dynamic in terms of its functionality and accessible to almost every new joiner since we closely work with the tool, this implementation was quite robust and easy to execute at the same time. Fill in a couple of fields, click a button, and the script does the rest.</p><p>Below I’ve demonstrated how the structure of the Jira tasks looks like on our ‘Onboarding’ project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qIBfgtQBetBLJJd9EI0dNw.gif" /><figcaption>Demonstration of how the tasks are structured once the code has executed.</figcaption></figure><p>In addition to everything I’ve covered, we’re also gathering feedback regarding this process and understand how can this be further optimized. Every new joiner writes a review on their last onboarding task to provide feedback, improvement points, or general suggestions.</p><p>Here are a couple of feedbacks we received by our fellow peers regarding this Onboarding process</p><blockquote>“Thank you for this very informative and well-organized onboarding process. It is a very nice way to prepare a newcomer to the work, just like the tutorial stage in the introduction of computer games.</blockquote><blockquote>I believe I’ve gained a high-level perspective about the company, its products/services as well as technical details of the development process.”</blockquote><blockquote>— Mahmut Ö, Fullstack Developer</blockquote><blockquote>“These onboarding tasks along with the details have been very helpful to get familiar to our products,environments, etc. Highly appreciated.”</blockquote><blockquote>— Jitendra Gupta, Lead DevOps Engineer</blockquote><blockquote>“I appreciate having been part of this onboarding process. I felt that the tasks were both well thought out as well as constructive and they were valuable in helping me know the organization better.”</blockquote><blockquote>— Roopa Khatri, Scrum Master</blockquote><p>With this process in place, we are well on our way of accomplishing the goals we sought out to achieve.. to implement a goal-driven process in order to help the new members of our team feel more welcome and propelled to work with us and for them to grasp the “Why’s” and “How’s” about our company much better.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c3a841f53e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ounass/creating-a-dynamic-onboarding-experience-on-jira-a-step-by-step-guide-1c3a841f53e8">Creating a Dynamic Onboarding Experience on Jira: A Step-By-Step Guide</a> was originally published in <a href="https://medium.com/ounass">Ounass</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>