Пример #1
0
 private string ConvertToString(JIRAItem j)
 {
     return(string.Join(Delim, j.JiraKey, ToString(j.CreatedDate), ToString(j.DoneDate),
                        GetBoard(j),
                        ToString(j.GetAuxField(AuxFields.Epic)), j.Title,
                        ToString(j.ArchivedDate != null ? null : j.Status) //Don't show status for archived
                        ));
 }
Пример #2
0
        private void LoadView(JIRAItem existing)
        {
            if (existing != null)
            {
                JiraKey   = existing.JiraKey;
                Notes     = existing.Notes;
                SprintId  = existing.SprintId;
                Status    = existing.Status;
                JiraTitle = existing.Title;

                IsDone     = existing.DoneDate != null;
                IsArchived = existing.ArchivedDate != null;

                Epic         = existing.GetAuxField(AuxFields.Epic) as string;
                TimeEstimate = existing.GetAuxField(AuxFields.TimeEstimate) as string;
                PullRequest  = existing.GetAuxField(AuxFields.PullRequest) as string;
            }
        }
Пример #3
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            JIRAItem jira = value as JIRAItem;

            if (jira == null)
            {
                return(null);
            }

            AuxFields aux = (AuxFields)Enum.Parse(typeof(AuxFields), (string)parameter);

            return(jira.GetAuxField(aux));
        }