Esempio n. 1
0
        public JiraNamedEntity getSecurityLevel(string key)
        {
            try {
#if PLVS_133_WORKAROUND
                object securityLevel = service.getSecurityLevel(Token, key);
                return(securityLevel == null ? null : createNamedEntity(securityLevel));
#else
                RemoteSecurityLevel securityLevel = service.getSecurityLevel(Token, key);
                return(securityLevel == null ? null : new JiraNamedEntity(int.Parse(securityLevel.id), securityLevel.name, null));
#endif
            } catch (Exception) {
                return(null);
            }
        }