Class: JiraCommand::Command::List
- Inherits:
-
Thor
- Object
- Thor
- JiraCommand::Command::List
- Defined in:
- lib/jira_command/command/list.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/jira_command/command/list.rb', line 19 def all jql = [] jql << 'sprint in openSprints()' unless ['current'].nil? jql << 'status not in (resolved)' unless ['unresolved'].nil? config = JiraCommand::Config.new.read list = JiraCommand::Jira::List.new(config) issues_list = list.list({ jql: jql.join('&') }) show_in_console(config[:jira_url], issues_list['issues']) end |
#my ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/jira_command/command/list.rb', line 33 def my jql = ['assignee=currentUser()'] jql << 'sprint in openSprints()' unless ['current'].nil? jql << 'status not in (resolved)' unless ['unresolved'].nil? config = JiraCommand::Config.new.read list = JiraCommand::Jira::List.new(config) issues_list = list.list({ fields: 'id,key,status,issuetype,assignee,summary', jql: jql.join('&') }) show_in_console(config[:jira_url], issues_list['issues']) end |
#without_epic ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/jira_command/command/list.rb', line 47 def without_epic config = JiraCommand::Config.new.read agile_epic = JiraCommand::Jira::Epic.new(config) jql = ["key in (#{agile_epic.issue_key_without_epic.join(', ')})"] list = JiraCommand::Jira::List.new(config) issues_list = list.list({ fields: 'id,key,status,issuetype,assignee,summary', jql: jql.join('&') }) show_in_console(config[:jira_url], issues_list['issues']) end |