Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-65109

In certain circumstances, the Stop Watching functionality does not work correctly when unwatching issues reported by you while Autowatch is enabled.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • 10.2.0
    • 7.3.0, 7.3.7, 7.4.4, 7.2.4, 7.10.2, 7.13.1, 7.12.3
    • Issue - View Issue

      Issue Summary

      As such it requires multiple watches and unwatches to get an issue unwatched; and can be very confusing. B

      Steps to Reproduce

      1. Enable Autowatch reported issues (the default is set to Yes)
      2. Create an issue, and remove yourself as the watcher.
        • Note that the More menu item for watching is currently set to Watch Issue
        • The sidebar Watchers field says Start watching this issue
      3. Transition the issue, using a transition that has a screen and the comment field.

      Then, do one of the following:

      1. Click Stop Watching this Issue
      2. Click the number of watchers, then trash your own username

      Expected Results

      1. The More menu item for watching is currently set to Stop watching
      2. The sidebar Watchers field says Stop watching this issue
      3. The lozenge for the watchers is grey (because you are not watching the issue)

      Actual Results

      1. The More menu item for watching is currently set to Watch issue
      2. The sidebar Watchers field says Stop watching this issue
      3. The lozenge is the same colour as if you were watching the issue still

      Notes

      • It looks like there are two seperate rest endpoints being used:
        • Used when removing self from the Watchers field via the lozenge: rest/api/2/issue/REP-2/watchers?username=<username>
        • Used when removing self via the Stop Watching this issue link: rest/api/1.0/issues/10101/watchers

      Both requests return successfully (i.e, a 204 via the lozenge, and a 200 via the Stop watching this issue via the link). There was also some discussions about permissions being relevant, but it's tough to determine how relevant those permissions are.

      If you can reliably reproduce this behaviour where permissions for users are a factor, please reply in the comments section below.

      Additionally, in some circumstances, the Watch Issue link is out life line with the rest of the menu, and doesn't behave like a menu item (but it can be clicked regardless).

      Workaround One:

      • Click Stop Watching this issue on the sidebar (alternatively, you can click More » Watch Issue
      • Click More » Watch issue
      • Click Stop Watching this issue - the issue should now unwatch correctly.

      Workaround Two:

      Using bulk tools, watch and then unwatch the issues (two seperate bulk issues). You can use key in watchedIssues() as a starting point to find all issues you're currently watching.

      Workaround Three:

      Disable Autowatch on own issues. By default, users inherit from the global user settings.

              15609d8ba305 Filip Nowak
              nparks@atlassian.com Nathan Parks
              Votes:
              75 Vote for this issue
              Watchers:
              79 Start watching this issue

                Created:
                Updated: