Class IssueTableResource

java.lang.Object
com.atlassian.jira.gadgets.system.AbstractResource
com.atlassian.jira.gadgets.system.IssueTableResource

@Path("/issueTable") @Produces("application/json") public class IssueTableResource extends AbstractResource
REST resource to retreive a pre-rendered issue table.
Since:
v4.0
  • Field Details

  • Constructor Details

  • Method Details

    • validateFilterTable

      @GET @Path("filter/validate") public javax.ws.rs.core.Response validateFilterTable(@QueryParam("filterId") String filterId, @QueryParam("columnNames") List<String> columnNames, @QueryParam("num") String numberToShow)
      Validates the input for an issue table based off a filter
      Parameters:
      filterId - the filter id of the filter to create the table for
      columnNames - the column names to display (this can be left blank to get the default columns)
      numberToShow - the number of issues to display per page
      Returns:
      A response containing and empty 200 response or a 400 containg a ErrorCollection containg all validation errors
    • getFilterTable

      @GET @Path("filter") public javax.ws.rs.core.Response getFilterTable(@Context javax.servlet.http.HttpServletRequest request, @QueryParam("tableContext") String context, @QueryParam("filterId") String filterId, @QueryParam("columnNames") List<String> columnNames, @QueryParam("sortBy") String sortBy, @QueryParam("paging") @DefaultValue("false") boolean isPaging, @QueryParam("startIndex") @DefaultValue("0") int start, @QueryParam("num") @DefaultValue("5") String numberToShow, @QueryParam("enableSorting") @DefaultValue("false") boolean enableSorting, @QueryParam("displayHeader") @DefaultValue("true") boolean displayHeader, @QueryParam("showActions") @DefaultValue("false") boolean showActions, @QueryParam("addDefault") @DefaultValue("false") boolean addDefaults)
      Validates and then creates an issue table based off a filter
      Parameters:
      filterId - the filter id of the filter to create the table for
      columnNames - the column names to display (this can be left blank to get the default columns)
      numberToShow - the number of issues to display per page
      request - the current request.
      context - the context which the table is being rendered. Used for getting default columns, and redirects
      sortBy - The extra column to sort by with optional :ASC or :DESC suffix
      isPaging - Is paging enabled
      start - The issue to start from
      enableSorting - enable sorting
      displayHeader - display the header?
      showActions - show the actions column
      addDefaults - add the default columns to the table
      Returns:
      A response 200 response containing a IssueTableResource.IssueTable containg the rendered html and other nice to haves (counts, urls, titles) or a 400 containg a ErrorCollection containg all validation errors
    • validateJql

      @GET @Path("jql/validate") public javax.ws.rs.core.Response validateJql(@QueryParam("num") String numberToShow, @QueryParam("columnNames") List<String> columnNames)
    • getMaxIssuesToShow

      @GET @Path("jql/issueslimit") public javax.ws.rs.core.Response getMaxIssuesToShow()
    • getJqlTable

      @GET @Path("jql") public javax.ws.rs.core.Response getJqlTable(@Context javax.servlet.http.HttpServletRequest request, @QueryParam("tableContext") String context, @QueryParam("jql") String jql, @QueryParam("title") String title, @QueryParam("columnNames") List<String> columnNames, @QueryParam("sortBy") String sortBy, @QueryParam("paging") @DefaultValue("false") boolean isPaging, @QueryParam("startIndex") @DefaultValue("0") int start, @QueryParam("num") @DefaultValue("5") String numberToShow, @QueryParam("enableSorting") @DefaultValue("false") boolean enableSorting, @QueryParam("displayHeader") @DefaultValue("true") boolean displayHeader, @QueryParam("showActions") @DefaultValue("false") boolean showActions, @QueryParam("addDefault") @DefaultValue("false") boolean addDefaults, @QueryParam("useConfiguredCols") @DefaultValue("false") boolean useConfiguredCols)
    • generateColumnSortJql

      public Map<String,String> generateColumnSortJql(SearchRequest sr, com.atlassian.jira.gadgets.system.IssueTableResource.LinkedLabelledQuery query, List<ColumnLayoutItem> columns)
    • validateIterationTable

      @GET @Path("iteration/validate") public javax.ws.rs.core.Response validateIterationTable(@QueryParam("projectId") String projectId, @QueryParam("columnNames") List<String> columnNames, @QueryParam("num") String numberToShow)
      Validates the input for an issue table based the next unreleased version for a project
      Parameters:
      projectId - the project to get the next unreleased version for and base the table off
      columnNames - the column names to display (this can be left blank to get the default columns)
      numberToShow - the number of issues to display per page
      Returns:
      A response containing and empty 200 response or a 400 containg a ErrorCollection containg all validation errors
    • getIterationTable

      @GET @Path("iteration") public javax.ws.rs.core.Response getIterationTable(@Context javax.servlet.http.HttpServletRequest request, @QueryParam("tableContext") String context, @QueryParam("projectId") String projectId, @QueryParam("completed") @DefaultValue("true") boolean completed, @QueryParam("columnNames") List<String> columnNames, @QueryParam("sortBy") String sortBy, @QueryParam("paging") @DefaultValue("false") boolean isPaging, @QueryParam("startIndex") @DefaultValue("0") int start, @QueryParam("num") @DefaultValue("5") String numberToShow, @QueryParam("enableSorting") @DefaultValue("false") boolean enableSorting, @QueryParam("displayHeader") @DefaultValue("true") boolean displayHeader, @QueryParam("showActions") @DefaultValue("false") boolean showActions)
      Validates and then creates an issue table based the next unreleased version for a project
      Parameters:
      projectId - the project to get the next unreleased version for and base the table off
      completed - Whether to show completed or uncompleted issues
      columnNames - the column names to display (this can be left blank to get the default columns)
      numberToShow - the number of issues to display per page
      request - the current request.
      context - the context which the table is being rendered. Used for getting default columns, and redirects
      sortBy - The extra column to sort by with optional :ASC or :DESC suffix
      isPaging - Is paging enabled
      start - The issue to start from
      enableSorting - enable sorting
      displayHeader - display the header?
      showActions - show the actions column
      Returns:
      A response 200 response containing a IssueTableResource.IssueTable containg the rendered html and other nice to haves (counts, urls, titles) or a 400 containg a ErrorCollection containg all validation errors