Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-3335

Allow project filtering on ServiceDeskCommentEvent

    Details

    • Type: Bug
    • Status: To Do
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Listeners
    • Labels:
      None
    • Critical Points:
      1.2

      Description

      Problem

      We don't currently attempt to extract the project from ServiceDeskCommentEvent in order to perform filtering on it, but since it is available (as event.issue.projectObject) we ought to do so.

      Workaround

      When a Condition field is present or part of your custom script you can use the following snippet

      if (event.comment.comment.issue.projectObject.key != "CAP") {
          return false
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jchoules Joanna Choules
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated: