Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-63762

Ability to unwatch a JIRA ticket from notification email

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.

      The concept of the request is simple:  when I get a JIRA notification email, I would love for a link to be included that would remove me as a Watcher of that ticket.  It can open the ticket in a new tab to do that.  This saves a few clicks, but also allows me to more easily process my list of JIRA emails (because I can open the unwatch link in a background tab and move on)

          Form Name

            [JRACLOUD-63762] Ability to unwatch a JIRA ticket from notification email

            Atlassian Update - January 13, 2025

            Hi everyone,

            Thank you for bringing this suggestion to our attention. As explained in our new feature policy, there are many factors that influence our product roadmaps and determine the features we implement. When making decisions about what to prioritise and work on, we combine your feedback and suggestions with insights from our support teams, product analytics, research findings, and more. This information, combined with our medium- and long-term product and platform vision, determines what we implement and its priority order.

            Unfortunately, as a result of inactivity for an extended period of time, this suggestion didn’t make it to the roadmap and we are closing it.

            While this issue has been closed, our Product Managers continue to look at requests on jira.atlassian.com as they develop their roadmap, including closed ones. In addition, if you feel like this suggestion is still important to your team please let us know by commenting on this ticket.

            Thank you again for providing valuable feedback to our team - Jira Cloud Product Management

            Matthew Hunter added a comment - Atlassian Update - January 13, 2025 Hi everyone, Thank you for bringing this suggestion to our attention. As explained in our new feature policy , there are many factors that influence our product roadmaps and determine the features we implement. When making decisions about what to prioritise and work on, we combine your feedback and suggestions with insights from our support teams, product analytics, research findings, and more. This information, combined with our medium- and long-term product and platform vision, determines what we implement and its priority order. Unfortunately, as a result of inactivity for an extended period of time, this suggestion didn’t make it to the roadmap and we are closing it. While this issue has been closed, our Product Managers continue to look at requests on jira.atlassian.com as they develop their roadmap, including closed ones. In addition, if you feel like this suggestion is still important to your team please let us know by commenting on this ticket. Thank you again for providing valuable feedback to our team - Jira Cloud Product Management

            Hi everyone, I'm sharing this post that was previously added on the related ticket JRACLOUD-1369Reduce JIRA email chatiness as it may be of interest to watchers of this ticket:

             

            We are excited to be launching an Early Access Program (EAP) for some new changes we plan to introduce to help tackle the Jira email chattiness issue, and would like to invite all Jira Cloud admins to join our EAP. By participating, you'll have the opportunity to test out the new changes firsthand and provide us with valuable feedback to help shape the final version of this feature.

            For more details and to sign up for the EAP, please refer to our community article.

             

             

            Anusha Rutnam added a comment - Hi everyone, I'm sharing this post that was previously added on the related ticket JRACLOUD-1369 – Reduce JIRA email chatiness as it may be of interest to watchers of this ticket:   We are excited to be launching an Early Access Program (EAP) for some new changes we plan to introduce to help tackle the Jira email chattiness issue, and would like to invite all Jira Cloud admins to join our EAP. By participating, you'll have the opportunity to test out the new changes firsthand and provide us with valuable feedback to help shape the final version of this feature. For more details and to sign up for the EAP, please refer to our  community article .    

            Flaviu Tamas added a comment - - edited

            This feature being missing is very frustrating–every other ticketing software I've used can do this.

            I've ended up implementing my own version of this using a set of two UserScripts:

            • One script runs in my gmail, and when I hit the ctrl-e key, it opens a new tab to `/browse/ABC-123/unwatch`
            • One script runs in Jira, and automatically unsubscribes from the current issue if the url contains "unwatch". After successfully unsubscribing, it closes the tab.

            I've attached these scripts to this issue for anyone else who might also find this helpful. Note that they work if you're using plain-text notification emails.

             

            // ==UserScript==
            // @name        Unsubscribe URL - atlassian.net
            // @namespace   Violentmonkey Scripts
            // @match       https://*.atlassian.net/browse/*/unwatch
            // @grant       none
            // @version     1.0
            // @author      -
            // @description 5/30/2023, 2:36:18 PM
            // ==/UserScript==
            
            
            // gets the URL of the current page
            const url = new URL(window.location.href);
            
            // gets the issue ID from the URL
            const issueId = url.pathname.split("/")[2];
            const subdomain = url.hostname.split(".")[0];
            
            
            // get watchers:
            (async () => {
                // get account id from <meta name="ajs-atlassian-account-id" content="...">
                const accountId = document.querySelector("meta[name='ajs-atlassian-account-id']").content;
            
                const watchersUrl = new URL(`https://${subdomain}.atlassian.net/rest/api/2/issue/${issueId}/watchers`)
                watchersUrl.searchParams.append("accountId", accountId);
            
                await fetch(watchersUrl, {
                    "credentials": "include",
                    "method": "DELETE",
                    "mode": "cors"
                });
            
                // close the tab
                window.close();
            
            })();
            
            // ==UserScript==
            // @name        JIRA Unsubscribe - google.com
            // @namespace   Violentmonkey Scripts
            // @match       https://mail.google.com/mail/u/*
            // @grant       none
            // @version     1.0
            // @author      -
            // @description 5/30/2023, 3:02:26 PM
            // ==/UserScript==
            
            
            // on ctrl-e, unsubscribe from the current issue
            document.addEventListener("keydown", e => {
                if (!(e.key === "e" && e.ctrlKey)) {
                    return;
                }
            
                e.preventDefault();
                const currentEmailTitle = document.querySelector('[data-thread-perm-id]').innerText;
                // parse [JIRA] (ABC-1234) Title
                const issueId = /^\[JIRA] \((\w+-\d+)\)/.exec(currentEmailTitle)[1]
            
                // search for subdomain in the email body
                const urlMatcher = new RegExp('https://(\\w+)\\.atlassian\\.net/browse/' + issueId)
                const match = document.body.textContent.match(urlMatcher)[1]
            
                // open the unsubscribe URL in a new tab
                window.open(`https://${match}.atlassian.net/browse/${issueId}/unwatch`, "_blank");
                // this ends up triggering the Unsubscribe URL - atlassian.net script under the new tab context
            });
            

             

            Flaviu Tamas added a comment - - edited This feature being missing is very frustrating–every other ticketing software I've used can do this. I've ended up implementing my own version of this using a set of two UserScripts: One script runs in my gmail, and when I hit the ctrl-e key, it opens a new tab to `/browse/ABC-123/unwatch` One script runs in Jira, and automatically unsubscribes from the current issue if the url contains "unwatch". After successfully unsubscribing, it closes the tab. I've attached these scripts to this issue for anyone else who might also find this helpful. Note that they work if you're using plain-text notification emails.   // ==UserScript== // @name Unsubscribe URL - atlassian.net // @namespace Violentmonkey Scripts // @match https://*.atlassian.net/browse/*/unwatch // @grant none // @version 1.0 // @author - // @description 5/30/2023, 2:36:18 PM // ==/UserScript== // gets the URL of the current page const url = new URL(window.location.href); // gets the issue ID from the URL const issueId = url.pathname.split("/")[2]; const subdomain = url.hostname.split(".")[0]; // get watchers: (async () => { // get account id from <meta name="ajs-atlassian-account-id" content="..."> const accountId = document.querySelector("meta[name='ajs-atlassian-account-id']").content; const watchersUrl = new URL(`https://${subdomain}.atlassian.net/rest/api/2/issue/${issueId}/watchers`) watchersUrl.searchParams.append("accountId", accountId); await fetch(watchersUrl, { "credentials": "include", "method": "DELETE", "mode": "cors" }); // close the tab window.close(); })(); // ==UserScript== // @name JIRA Unsubscribe - google.com // @namespace Violentmonkey Scripts // @match https://mail.google.com/mail/u/* // @grant none // @version 1.0 // @author - // @description 5/30/2023, 3:02:26 PM // ==/UserScript== // on ctrl-e, unsubscribe from the current issue document.addEventListener("keydown", e => { if (!(e.key === "e" && e.ctrlKey)) { return; } e.preventDefault(); const currentEmailTitle = document.querySelector('[data-thread-perm-id]').innerText; // parse [JIRA] (ABC-1234) Title const issueId = /^\[JIRA] \((\w+-\d+)\)/.exec(currentEmailTitle)[1] // search for subdomain in the email body const urlMatcher = new RegExp('https://(\\w+)\\.atlassian\\.net/browse/' + issueId) const match = document.body.textContent.match(urlMatcher)[1] // open the unsubscribe URL in a new tab window.open(`https://${match}.atlassian.net/browse/${issueId}/unwatch`, "_blank"); // this ends up triggering the Unsubscribe URL - atlassian.net script under the new tab context });  

            This would be fantastic. I see that Confluence has the ability to unwatch a page from the email, I would love this on JIRA tickets, too.

            Thanks in advance!

             

             

            Robby Russell added a comment - This would be fantastic. I see that Confluence has the ability to unwatch a page from the email, I would love this on JIRA tickets, too. Thanks in advance!    

              Unassigned Unassigned
              9cf3def2a593 Mike Bulman
              Votes:
              8 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: