Esempio n. 1
0
        /// <summary>
        /// Indicates where a given workflow action is valid for a specific issue
        /// </summary>
        /// <param name="issue">The <c>Issue</c> entity to resolve</param>
        private bool CanPerformWorkflowAction(Issue issue, JiraWorkflowAction action)
        {
            List <int> availableActions = this.Provider.GetAvailableActions(issue.Key);

            if (availableActions.Contains((int)action))
            {
                return(true);
            }
            return(false);
        }
 /// <summary>
 /// Indicates where a given workflow action is valid for a specific issue
 /// </summary>
 /// <param name="issue">The <c>Issue</c> entity to resolve</param>
 private bool CanPerformWorkflowAction(Issue issue, JiraWorkflowAction action ){
     List<int> availableActions = this.Provider.GetAvailableActions(issue.Key);
     if (availableActions.Contains((int)action)){
         return true;
     }
     return false;
 }