text: from askap.slice import SchedulingBlockService
  # noinspection PyUnresolvedReferences
  from askap.interfaces.schedblock import ISBStateMonitor, ObsState
  
  import subprocess
  import time
  import os
  from askap.jira import Jira
  from . import logger
  
  class JIRAStateChangeMonitor(ISBStateMonitor):
      def __init__(self, params):
          self.params = params
          self.jira = Jira()
  
      def changed(self, sbid, new_state, update_time, current=None):
          if new_state.name == ObsState.OBSERVED:
              logger.info("Raise jira for " + str(sbid) + ": Ready for data processing")
              self.jira.create_issue(sbid, "Ready for data processing")
  