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

Escalation Service Throws an Exception

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.3.0
    • Component/s: Built-in Scripts
    • Labels:
      None
    • Critical Points:
      0.6

      Description

      The escalation service will always throw an exception when it tries to reset the logged in user.

      It will not happen if you use the 'Run Now' option, only when the service is running in the background.

      Here's the original code in the Escalation Service:

      finally { 
        jiraAuthenticationContext.setLoggedInUser(currentlyLoggedInUser)
      }
      

      Suggested Fix:

      finally {
        if(currentlyLoggedInUser){
           jiraAuthenticationContext.setLoggedInUser(currentlyLoggedInUser)
        } 
        else { jiraAuthenticationContext.clearLoggedInUser() } 
      }
      

        Attachments

          Activity

            People

            Assignee:
            jdavis Jenna Davis
            Reporter:
            jdavis Jenna Davis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: