Jira Cloud REST API for listing archived issues

XMLWordPrintable

    • 24
    • 2

      Issue Summary

      Currently there is no official Jira REST API to list archived Jira issues, even though the unsupported Jira GraphQL API support this functionality and appears to be used by the Jira Cloud UI to list the archived issues:

      query getArchivedIssuesForProjectQuery($cloudId: ID!, $searchBy: String, $filterBy: JiraArchivedIssuesFilterInput, $first: Int, $last: Int) {
        jira {
          getArchivedIssuesForProject(
            cloudId: $cloudId
            searchBy: $searchBy
            filterBy: $filterBy
            first: $first
            last: $last
          ) @optIn(to: "JiraGetArchivedIssuesForProjectQuery") {
            totalCount
            edges {
              node {
                id
                key
                webUrl
                summary
                createdField {
                  dateTime
                }
                updatedField {
                  dateTime
                }
                projectField {
                  id
                  name
                }
                reporter {
                  accountId
                }
                isArchived
                archivedBy {
                  accountId
                }
                archivedOn 
              }
            }
            pageInfo {
              startCursor
              endCursor
            }
            errors {
              identifier
              message
            }
            emptyConnectionReason {
              message
            }
          }
        }
      } 

      The current export endpoint doesn’t work because it’s async and sends the data via email download link:

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Assignee:
            Unassigned
            Reporter:
            Rosa Faghihi (Inactive)
            Votes:
            24 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: