<?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 Emad Zafar  on Medium]]></title>
        <description><![CDATA[Stories by Emad Zafar  on Medium]]></description>
        <link>https://medium.com/@emadzafar?source=rss-8b0193120341------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7QZRlAsOyeekDvig</url>
            <title>Stories by Emad Zafar  on Medium</title>
            <link>https://medium.com/@emadzafar?source=rss-8b0193120341------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:52:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emadzafar/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[Centralize your Docker logs with Grafana, Loki and Promtail]]></title>
            <link>https://medium.com/@emadzafar/centralize-your-docker-logs-with-grafana-loki-and-promtail-898394699963?source=rss-8b0193120341------2</link>
            <guid isPermaLink="false">https://medium.com/p/898394699963</guid>
            <category><![CDATA[grafana]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[grafana-loki]]></category>
            <dc:creator><![CDATA[Emad Zafar ]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 18:47:29 GMT</pubDate>
            <atom:updated>2026-09-11T18:47:29.205Z</atom:updated>
            <content:encoded><![CDATA[<p>If you run a handful of containers on a server, you know the drill. Something breaks, you SSH in, run `docker logs` on one container, then another, then grep through `/var/log`, and try to line up timestamps in your head. It works until you have more than two or three services, and then it does not.</p><p>This tutorial sets up a small logging stack that fixes that. Every container on the host sends its logs to one place, and you search all of them from a single screen. It is three tools: Promtail collects, Loki stores, Grafana shows. You do not touch your application code.</p><p>By the end you will understand how the pieces fit, what each config file is<br>doing, and how to point it at your own containers. If you just want the finishe thing, the full repo is linked at the bottom and you can run it in two commands.</p><h3>What we are building</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LsKgiOwGbauV576rfsktvQ.png" /></figure><ul><li><strong>Promtail</strong> runs on the host, finds every container, and tails the log files<br> Docker already writes for them.</li><li><strong>Loki</strong> stores those logs and indexes them by a small set of labels.</li><li><strong>Grafana</strong> is where you search, using a query language called LogQL.</li></ul><p>The important idea to hold on to: Loki does not index the full text of your logs like Elasticsearch does. It indexes <strong>labels</strong> (things like the container name) and keeps the log body compressed. That is what makes it cheap to run, and it also shapes how you search. You filter by labels first to pick a stream, then search within it.</p><h3>Before you start</h3><p>You need Docker and Docker Compose on the host, and ports 3000 and 3100 free. That is it.</p><h3>The compose file, service by service</h3><p>The whole stack is one docker-compose.yml with three services. Here is Loki, trimmed to the parts that matter:</p><pre>loki:<br>    image: grafana/loki:2.9.4<br>    command:<br>      - &quot;-config.file=/etc/loki/loki-config.yaml&quot;<br>    ports:<br>      - &quot;3100:3100&quot;<br>    volumes:<br>      - ./loki/loki-config.yaml:/etc/loki/loki-config.yaml:ro<br>      - loki_data:/loki</pre><p>Nothing surprising. It mounts a config file and a volume for its data. Promtail is where the interesting part is, because it needs to see the host to read container logs:</p><pre>promtail:<br>    image: grafana/promtail:2.9.4<br>    command: -config.file=/etc/promtail/promtail-config.yaml<br>    volumes:<br>      - ./promtail/promtail-config.yaml:/etc/promtail/promtail-config.yaml:ro<br>      - /var/lib/docker/containers:/var/lib/docker/containers:ro<br>      - /var/run/docker.sock:/var/run/docker.sock:ro</pre><p>Those last two mounts are the whole trick. The Docker socket lets Promtail ask Docker what containers exist, and the containers directory is where Docker writes their log files. Promtail reads them straight off disk.</p><p>Grafana is the plain one. It just needs the provisioning folder mounted so it starts with Loki already connected, which I will come back to.</p><h3>The Loki config, explained</h3><p>You do not need to write this from scratch, but you should understand the parts you will actually change. Here is the storage and retention section:</p><pre>common:<br>  path_prefix: /loki<br>  storage:<br>    filesystem:<br>      chunks_directory: /loki/chunks<br>      rules_directory: /loki/rules</pre><pre>limits_config:<br>  retention_period: 720h<br>  ingestion_rate_mb: 15</pre><p>Three things you might touch:</p><ul><li><strong>storage</strong> is set to filesystem, so logs live on local disk. Good for getting started. Further down I show how to move this to S3.</li><li><strong>retention_period</strong> is how long logs are kept, 720 hours is 30 days.</li><li><strong>ingestion_rate_mb</strong> is a cap. If Loki starts returning 429 errors under heavy log volume, this is the number you raise.</li></ul><h3>The Promtail config, explained</h3><p>This is the file you will adjust the most, because it decides what gets collected and how it is labelled. The core is a job that discovers containers and turns Docker metadata into labels:</p><pre>scrape_configs:<br>  - job_name: docker-containers<br>    docker_sd_configs:<br>      - host: unix:///var/run/docker.sock<br>    relabel_configs:<br>      - source_labels: [__meta_docker_container_name]<br>        regex: &#39;/(.*)&#39;<br>        target_label: container_name</pre><p>docker_sd_configs is Docker service discovery. Promtail asks the socket for the container list and refreshes it as containers come and go. The relabel_configsblock copies the container name into a clean container_name label, which is how you will filter later.</p><p>There is one more piece worth calling out, a pipeline stage that pulls a trace id out of the log line:</p><pre>pipeline_stages:<br>      - regex:<br>          expression: &#39;trace_id=(?P&lt;trace_id&gt;[0-9a-fA-F]+)&#39;<br>      - labels:<br>          trace_id:</pre><p>If your services print something like trace_id=abc123 in their logs, this lifts it into a label. On its own that just lets you filter by trace. Once you add tracing backend later, it becomes a clickable link from a log straight to the trace. If your logs do not have a trace id yet, this stage simply does nothing, so it is safe to leave in.</p><h3>Connecting Grafana automatically</h3><p>You could add the Loki data source by hand in the UI, but it is nicer to have it there on first boot. Grafana reads a provisioning file at startup:</p><pre>datasources:<br>  - name: Loki<br>    type: loki<br>    url: http://loki:3100<br>    isDefault: true</pre><p>Drop that in grafana/provisioning/datasources/ and mount the folder. Now Grafana starts with Loki wired in and nothing to click.</p><h3>Bring it up</h3><pre>cp .env.example .env      # set a Grafana password<br>docker compose up -d</pre><p>Open http://localhost:3000, log in, and go to Explore. Pick Loki and run your first query:</p><pre>{container_name=&quot;my-api&quot;}</pre><p>That shows every log line from the container named my-api. A few more you will use constantly:</p><pre>{container_name=&quot;my-api&quot;} |= &quot;error&quot;          # lines containing &quot;error&quot;<br>{container_name=&quot;my-api&quot;} | json               # parse JSON log fields<br>{job=&quot;varlogs&quot;}                                # host log files under /var/log</pre><p>The curly braces are the label filter, and everything after the pipe runs on the matching stream. Start narrow with labels, then filter the text.</p><p>Any container you start after this shows up on its own. There is nothing to register.</p><h3>Moving storage to S3</h3><p>Local disk is fine while you are learning, but it dies with the host. For logs that stick around, point Loki at an S3 bucket. The change is small: swap the filesystem storage block for an s3 one and give Loki credentials.</p><pre>common:<br>  storage:<br>    s3:<br>      bucketnames: my-project-logs<br>      region: us-east-1</pre><p>On an EC2 host the clean way to grant access is an instance role scoped to that bucket, so no keys live in the config. The bucket needs s3:PutObject, s3:GetObject, s3:DeleteObject and s3:ListBucket. The repo ships a ready loki-config.s3.yaml, so switching is a one line change to which config file you mount.</p><h3>What you have now</h3><p>A single place to search the logs of every container on a host, with no changes to your apps, and a clear path to durable storage when you need it. That covers the “what happened” question. When you are ready for “how much and how fast” or “where did this request go,” metrics and tracing are the next two stacks.</p><p>The full stack, with the complete config files, an example S3 setup, and a.env you can copy, is here: <a href="https://github.com/Emad-Zafar/loki-promtail-s3-logging"><strong>https://github.com/Emad-Zafar/loki-promtail-s3-logging</strong></a></p><p>Clone it, run two commands, and you are collecting logs. If something in the setup trips you up, that is a README bug worth telling me about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=898394699963" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Git Best Practices: A Complete Guide for Developers]]></title>
            <link>https://medium.com/@emadzafar/git-best-practices-a-complete-guide-for-developers-f701be8a9b2c?source=rss-8b0193120341------2</link>
            <guid isPermaLink="false">https://medium.com/p/f701be8a9b2c</guid>
            <category><![CDATA[git]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Emad Zafar ]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 20:42:31 GMT</pubDate>
            <atom:updated>2025-03-04T20:42:31.403Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*czfxCcogY4kag8PTixoROA.png" /></figure><p>Git is essential version control, it allows developers to collaborate effectively, track changes, and maintain code quality.</p><p>However, improper Git usage can lead to confusion, conflicts, and inefficiencies. In this guide I will try to cover the best practices for using Git efficiently in a professional development environment.</p><h3>1. Organizing Your Git Repository</h3><p>A well-structured repository ensures that teams can work efficiently and manage changes without confusion.</p><ul><li><strong>Keep repositories focused</strong>: A single repository should contain a related set of projects rather than multiple unrelated applications.</li><li><strong>Use a </strong><strong>.gitignore file</strong>: Prevent unnecessary files from being committed by specifying them in a .gitignore file.</li><li><strong>Keep commits small and meaningful</strong>: Each commit should have a specific purpose and be limited to a single logical change.</li></ul><p>Example .gitignore for a Node.js project:</p><pre>node_modules/<br>.env<br>ist/</pre><h3>2. Branching Strategies</h3><p>Using a clear branching strategy helps teams collaborate without interfering with each other’s work.</p><h3>Feature Branch Workflow</h3><ul><li>Create a new branch for each feature or bug fix.</li><li>Keep feature branches short-lived and merge them into the main branch frequently.</li></ul><p>Example:</p><pre>git checkout -b feature/user-auth</pre><h3>Git Flow</h3><p>A structured branching model with:</p><ul><li>main branch for production-ready code</li><li>develop branch for active development</li><li>feature, release, and hotfix branches for specific tasks</li></ul><h3>GitHub Flow</h3><ul><li>Work directly off main, creating short-lived feature branches.</li><li>Merge using pull requests for code review.</li></ul><h3>3. Writing Good Commit Messages</h3><p>Well-written commit messages improve code history readability and collaboration.</p><h3>Best Practices for Commit Messages</h3><ol><li><strong>Use clear and concise messages</strong>:</li></ol><pre>feat(auth): add JWT-based authentication</pre><p><strong>2. Use imperative tone</strong>: “Add feature” instead of “Added feature”.</p><p><strong>3. Separate subject and body</strong>: The subject line should summarize the change, while the body provides additional details.</p><p>Example:</p><pre>fix(api): resolve timeout issue</pre><p>Description:</p><pre>Reduced API response time by optimizing database queries.</pre><h3>Commit Message Types</h3><ul><li>feat: New feature</li><li>fix: Bug fix</li><li>refactor: Code restructuring without changing functionality</li><li>docs: Documentation updates</li><li>chore: Maintenance tasks (e.g., dependency updates)</li></ul><h3>4. Using Pull Requests (PRs) Effectively</h3><p>Pull requests improve code quality through peer review.</p><ul><li><strong>Write meaningful PR descriptions</strong> explaining why the changes were made.</li><li><strong>Keep PRs small and focused</strong> to make reviews easier.</li><li><strong>Use draft PRs</strong> for early feedback before completing a feature.</li></ul><p>Example PR title:</p><pre>[Feature] Add authentication using JWT</pre><p>PR description:</p><pre>### What does this PR do?<br>- Implements JWT authentication for user login and signup.</pre><pre>### Why is this needed?<br>- Improves security by using token-based authentication.</pre><pre>### How has this been tested?<br>- Unit tests and integration tests added.</pre><h3>5. Handling Merge Conflicts</h3><p>Merge conflicts occur when multiple people edit the same file in different ways.</p><h3>Preventing Conflicts</h3><ul><li><strong>Pull the latest changes before starting work</strong>:</li></ul><pre>git pull origin main</pre><ul><li><strong>Rebase instead of merging</strong> to keep a cleaner history:</li></ul><pre>git rebase main</pre><h3>Resolving Conflicts</h3><ol><li>Use git status to identify conflicting files.</li><li>Manually edit the conflicted sections.</li><li>Mark conflicts as resolved: git add &lt;conflicted-file&gt;</li><li>Continue the rebase or merge: git rebase --continue</li></ol><h3>6. Optimizing Git Performance</h3><p>Large repositories can slow down Git operations.</p><ul><li><strong>Use shallow clones for large repositories</strong>:</li></ul><pre>git clone --depth=1 &lt;repo-url&gt;</pre><ul><li><strong>Clean up old branches</strong>:</li></ul><pre>git branch -d old-feature-branch</pre><ul><li><strong>Use Git LFS (Large File Storage) for binaries and large assets</strong>.</li></ul><h3>7. Security Best Practices</h3><p>Keeping your code secure is crucial.</p><ul><li><strong>Never commit sensitive data like passwords or API keys</strong>.</li><li><strong>Use Git hooks</strong> to enforce security checks before commits.</li><li><strong>Sign commits with GPG</strong> to verify authorship:</li></ul><pre>git commit -S -m &quot;Secure commit&quot;</pre><ul><li><strong>Restrict force pushes</strong> to prevent accidental data loss.</li></ul><h3>8. Automating Git Workflows</h3><p>Automation reduces manual effort and enforces best practices.</p><ul><li><strong>Use pre-commit hooks</strong> to prevent bad commits:</li></ul><pre>touch .git/hooks/pre-commit chmod +x .git/hooks/pre-commit</pre><ul><li><strong>Integrate CI/CD pipelines</strong> to automatically test and deploy code after every push.</li></ul><p>Example .github/workflows/ci.yml for GitHub Actions:</p><pre>name: CI<br>on: [push, pull_request]<br>jobs:<br>  test:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - uses: actions/checkout@v2<br>      - name: Run tests<br>        run: npm test</pre><h3>9. Reviewing and Debugging Git History</h3><p>Git provides powerful tools to inspect and debug repository history.</p><ul><li><strong>Check commit history</strong>:</li></ul><pre>git log --oneline --graph --decorate</pre><ul><li><strong>Show file changes in a commit</strong>:</li></ul><pre>git show &lt;commit-hash&gt;</pre><ul><li><strong>Undo a commit</strong>:</li></ul><pre>git revert &lt;commit-hash&gt;</pre><ul><li><strong>Reset a branch to a previous state</strong>:</li></ul><pre>git reset --hard &lt;commit-hash&gt;</pre><h3>10. Keeping a Clean Git History</h3><p>A clear commit history makes it easier to track changes.</p><ul><li><strong>Use interactive rebase to clean up commits</strong>:</li></ul><pre>git rebase -i HEAD~5</pre><ul><li><strong>Squash commits before merging</strong> to keep history clean:</li></ul><pre>git merge --squash feature-branch</pre><h3>Conclusion</h3><p>Following Git best practices improves collaboration, maintains a clean history, and prevents errors. By adopting structured workflows, writing meaningful commit messages, and using automation, teams can maximize efficiency and minimize issues.</p><p>Would you like to see practical examples of any specific Git workflow? Let me know in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f701be8a9b2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Integrate Jira with CircleCI: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@emadzafar/how-to-integrate-jira-with-circleci-a-step-by-step-guide-b00288522a6b?source=rss-8b0193120341------2</link>
            <guid isPermaLink="false">https://medium.com/p/b00288522a6b</guid>
            <category><![CDATA[continuous-deployment]]></category>
            <category><![CDATA[circleci-orbs]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[circleci]]></category>
            <category><![CDATA[devops-automation]]></category>
            <dc:creator><![CDATA[Emad Zafar ]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 19:33:22 GMT</pubDate>
            <atom:updated>2025-01-08T21:25:39.850Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="The image shows a Jira issue’s development and release summary, including 7 commits, 1 merged pull request, 2 successful builds, and a successful deployment to the staging environment." src="https://cdn-images-1.medium.com/max/701/1*BWRO6Xa9tZBETnmu4H98FQ.png" /><figcaption>The image shows a Jira issue’s development and release summary, including 7 commits, 1 merged pull request, 2 successful builds, and a successful deployment to the staging environment.</figcaption></figure><p>Integrating CircleCI with Jira lets you automatically link your build and deployment statuses with Jira tickets, providing real-time updates on development progress. This guide walks you through the integration process using the <strong>CircleCI for Jira Atlassian Forge application</strong> and the <strong>circleci/jira orb</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*qO2iD1U-7pdQ1EhN1iqXaA.png" /></figure><h3>Overview of the Integration</h3><p>The integration uses two components:</p><ol><li><strong>CircleCI for Jira App</strong>: Installed in your Jira Cloud instance to enable connectivity.</li><li><strong>circleci/jira Orb</strong>: A CircleCI configuration package that sends build and deployment status updates to Jira.</li></ol><p>By connecting CircleCI jobs with Jira issues, your team can view build statuses directly on Jira cards and navigate to detailed logs when necessary.</p><h3><strong>Step 1: Install the CircleCI for Jira App</strong></h3><h3>1.1: Install the App in Jira Cloud</h3><ol><li>Log in to your <strong>Jira Cloud</strong> instance as a Jira Admin.</li><li>Open the <strong>Atlassian Marketplace</strong> and search for <a href="https://marketplace.atlassian.com/apps/1215946/circleci-for-jira?tab=overview&amp;hosting=cloud"><strong>CircleCI for Jira</strong></a>.</li><li>Click <strong>Install</strong> and follow the prompts to add the app to your Jira Cloud instance.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*09EZziLSzZ87HFDYRK0iAQ.png" /></figure><h3>1.2: Configure the App</h3><h4><strong>1.2.1: Access the Configuration Page</strong>:</h4><ol><li>Visit <a href="https://admin.atlassian.com/"><strong>admin.atlassian.com</strong></a>.</li><li>Select your organization and navigate to the appropriate Jira instance.</li><li>Click the three-dot menu next to the instance and select <strong>Manage Jira Apps</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ipPYS3BIca799dclMnsR2A.png" /></figure><h4><strong>1.2.2: Find CircleCI for Jira App</strong>:</h4><ol><li>Under <strong>User-installed Apps</strong>, locate the <strong>CircleCI for Jira</strong> app.</li><li>Expand the app details and click <strong>Configure</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gadgl2nW2NpnmDwxQZjirA.png" /></figure><h4><strong>1.2.3: Grant Permissions</strong>:</h4><ol><li>Click <strong>Allow Access</strong> to authorize the app to access Atlassian products on your behalf.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XIY-hIe6R9uMjXoaZcDnCA.png" /></figure><h3>1.3: Set Your CircleCI Organization ID</h3><ol><li>Open the <strong>CircleCI Dashboard</strong>.</li><li>Go to <strong>Organization Settings &gt; Overview</strong> to find your <strong>CircleCI Organization ID</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C9tbH8P4wV8wHVd8.png" /></figure><h3>1.4: Save the Webhook URL</h3><ol><li>In Jira, on the CircleCI for Jira <strong>Configure Page</strong>, enter your Organization ID.</li><li>Once the setup is complete, a <strong>Webhook URL</strong> will be generated.</li><li>Copy the Webhook URL for use in the next step.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*__x0keIrKRbzoibi.png" /></figure><h3>Step 2: Configure the CircleCI Jira Orb</h3><p>The <strong>circleci/jira orb</strong> relays information about your build or deployment to the Jira app. Follow these steps to configure it:</p><h3>2.1: Save the Webhook URL as an Environment Variable</h3><ol><li>Log in to your <strong>CircleCI Dashboard</strong>.</li><li>Navigate to your project settings and go to <strong>Environment Variables</strong>.</li><li>Add a new variable:</li></ol><ul><li><strong>Name</strong>: JIRA_WEBHOOK_URL</li><li><strong>Value</strong>: Paste the Webhook URL copied in <strong>Step 1.4</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sGfGJyXypaj4utvo.png" /></figure><p>Alternatively, you can add this variable to a <a href="https://circleci.com/docs/set-environment-variable/#set-an-environment-variable-in-a-context"><strong>Context</strong></a> for shared usage across multiple projects.</p><h3>2.2 Add the Jira Orb to Your CircleCI Configuration</h3><p>Update your .circleci/config.yml file to include the Jira orb and notify command.</p><h4><strong>Import the Jira Orb</strong>:</h4><pre>version: 2.1<br><br>orbs:<br>  jira: circleci/jira@2.0.0</pre><h4><strong>Use the </strong><strong>jira/notify Command</strong>:</h4><p>Add the jira/notify command at the end of your build or deployment job to send status updates to Jira.</p><p><strong>Example configuration:</strong></p><pre>jobs:<br>  build:<br>    docker:<br>      - image: circleci/node:latest<br>    steps:<br>      - checkout<br>      - run:<br>          name: Install Dependencies<br>          command: npm install<br>      - run:<br>          name: Run Tests<br>          command: npm test<br>      - jira/notify:<br>          webhook-url: $JIRA_WEBHOOK_URL<br>          environment-type: staging<br>          environment-name: staging<br>          issue-keys: &quot;PROJECT-123&quot;<br><br>workflows:<br>  version: 2<br>  build-and-notify:<br>    jobs:<br>      - build</pre><p><strong>Key Parameters</strong>:</p><ul><li>webhook-url: The Webhook URL from Jira.</li><li>environment-type: Specifies the deployment type (e.g., staging, production).</li><li>environment-name: Identifies the deployment environment.</li><li>issue-keys: The Jira issue(s) to update (e.g., PROJECT-123).</li></ul><h3>2.3 Dynamic Issue Detection</h3><p>You can dynamically extract Jira issue keys from branch names or commit messages. For example:</p><pre>jira/notify:<br>  webhook-url: $JIRA_WEBHOOK_URL<br>  issue-keys: &lt;&lt; pipeline.git.message &gt;&gt;</pre><p>Ensure your team includes Jira issue keys (e.g., PROJECT-456) in commit messages or branch names.</p><h3>Step 3: View Build and Deployment Status in Jira</h3><p>Once configured, the integration automatically updates Jira tickets with build and deployment statuses:</p><h4><strong>On the Jira Ticket</strong>:</h4><ul><li>Open a Jira issue linked to your CircleCI job.</li><li>View build and deployment statuses in the <strong>Development Panel</strong> on the right sidebar.</li></ul><h4><strong>Detailed View</strong>:</h4><ul><li>Click on a status to navigate to the full build or deployment logs in CircleCI.</li></ul><h3>Step 4: Testing and Validation</h3><ol><li>Push a commit to a branch with a Jira issue key in the commit message (e.g., PROJECT-123).</li><li>Trigger a build in CircleCI.</li><li>Check Jira to confirm that the issue is updated with build status.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b00288522a6b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>