lib/jira-profiler/issue.rb
# Returns all subtasks beloning to a project
Returns all subtasks beloning to a project
Returns all subtasks beloning to a project
def subtasks
      if @subtasks.nil?
        @subtasks = {}
        jql = "/rest/api/2/search?jql=parent=\"#{@key}\"&expand=changelog&maxResults=200"
        r = self.class.get(jql)
        r['issues'].each do |issue|
          @subtasks[issue['key']] = Issue.new(issue)
        end
      end
      @subtasks
    end
def subtasks if @subtasks . nil? @subtasks = { } jql = "/rest/api/2/search?jql=parent=\"#{@key}\"&expand=changelog&maxResults=200" r = self . class . get ( jql ) r [ 'issues' ] . each do | issue | @subtasks [ issue [ 'key' ] ] = Issue . new ( issue ) end end @subtasks end
Returns all subtasks beloning to a project
Returns all subtasks beloning to a project
# Cast raw response to Issue() # TODO: Merge subtask history into this issues history