public List <JiraNamedEntity> getActionsForIssue(JiraIssue issue) { #if PLVS_133_WORKAROUND object[] results = service.getAvailableActions(Token, issue.Key); return(createEntityList(results)); #else RemoteNamedObject[] actions = service.getAvailableActions(Token, issue.Key); if (actions == null) { return(new List <JiraNamedEntity>()); } return((from action in actions where action != null select new JiraNamedEntity(int.Parse(action.id), action.name, null)).ToList()); #endif }
public List <JiraNamedEntity> getActionsForIssue(JiraIssue issue) { RemoteNamedObject[] actions = service.getAvailableActions(token, issue.Key); List <JiraNamedEntity> list = new List <JiraNamedEntity>(); foreach (RemoteNamedObject action in actions) { list.Add(new JiraNamedEntity(int.Parse(action.id), action.name, null)); } return(list); }
internal JiraAction[] GetActions(JiraIssue issue) { List <JiraAction> results = new List <JiraAction>(); try { RemoteNamedObject[] actionsAvailable = _service.getAvailableActions(_token, issue.DisplayId); if (actionsAvailable != null) //dumbasses { foreach (RemoteNamedObject item in actionsAvailable) { results.Add(new JiraAction(item)); } } } catch { } return(results.ToArray()); }