public void writeTransitions(Issue issue, JsonWriter json) {
   json.name("transitions").beginArray();
   if (userSession.isLoggedIn()) {
     for (Transition transition : issueService.listTransitions(issue)) {
       json.value(transition.key());
     }
   }
   json.endArray();
 }
Exemplo n.º 2
0
 private void writeTransitions(Issue issue, JsonWriter json) {
   json.name("transitions").beginArray();
   if (UserSession.get().isLoggedIn()) {
     List<Transition> transitions = issueService.listTransitions(issue, UserSession.get());
     for (Transition transition : transitions) {
       json.value(transition.key());
     }
   }
   json.endArray();
 }
 public List<Transition> listTransitions(Issue issue) {
   return issueService.listTransitions(issue, UserSession.get());
 }
 public List<Transition> listTransitions(String issueKey) {
   return issueService.listTransitions(issueKey, UserSession.get());
 }