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

Unable to manage filter subscriptions

XMLWordPrintable

    • 2
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      Problem

      When the filter owner is changed, new owner should be able to manage the subscriptions as well.

      Suggested Solution

      Allow new owner to filter to manage subscriptions.

      Why This Is Important

      For various reasons, once the owner is changed, they would want to manage the underlying subscriptions as well. Although I see there is an API, I could not find a way from UI.
      There is no way to manage subscriptions by anyone other than the person who created this, this can lead to issues.

      Workaround

      use the api to change it

      sample script that can be run from an integrated console
      import com.atlassian.jira.component.ComponentAccessor
      
      def sm = ComponentAccessor.subscriptionManager
      
      def filterId = 10003
      def user1 = ComponentAccessor.userManager.getUserByName("user1")
      def user2 = ComponentAccessor.userManager.getUserByName("user2")
      
      def filterSubscription = sm.getFilterSubscription(user1, filterId)
      def expr =  sm.getCronExpressionForSubscription(filterSubscription) ?  sm.getCronExpressionForSubscription(filterSubscription) : ""
      
      sm.getCronExpressionForSubscription(filterSubscription)
      sm.updateSubscription(user2, filterSubscription.getId(), filterSubscription.getGroupName(), expr, false)
      

       

              Unassigned Unassigned
              25a297a97a14 Anupam Singh Deo (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: