code: def getTransitionDate(obj, action_id, return_as_datetime=False):
      
      review_history = getReviewHistory(obj)
      for event in review_history:
          if event.get('action') == action_id:
              evtime = event.get('time')
              if return_as_datetime:
                  return evtime
              if evtime:
                  value = ulocalized_time(evtime, long_format=True,
                                          time_only=False, context=obj)
                  return value
      return None
docs: Returns date of action for object. Sometimes we need this date in Datetime
      format and that's why added return_as_datetime param.