This resource represents the screens used to record issue details. Use it to:

  • get details of all screens.
  • get details of all the fields available for use on screens.
  • create screens.
  • delete screens.
  • update screens.
  • add a field to the default screen.

Hierarchy

  • CommonHttpService
    • ScreensService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns ScreensService

Methods

  • Returns a paginated list of all screens or those specified by one or more screen IDs.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          id?: number[];
          maxResults?: number;
          orderBy?:
              | "id"
              | "name"
              | "-id"
              | "+id"
              | "-name"
              | "+name";
          queryString?: string;
          scope?: ("GLOBAL" | "PROJECT" | "TEMPLATE")[];
          startAt?: number;
      } = {}
      • Optionalid?: number[]

        The list of screen IDs. To include multiple IDs, provide an ampersand-separated list. For example, id=10000&id=10001.

      • OptionalmaxResults?: number

        The maximum number of items to return per page.

      • OptionalorderBy?:
            | "id"
            | "name"
            | "-id"
            | "+id"
            | "-name"
            | "+name"

        Order the results by a field:

        • id Sorts by screen ID.
        • name Sorts by screen name.
      • OptionalqueryString?: string

        String used to perform a case-insensitive partial match with screen name.

      • Optionalscope?: ("GLOBAL" | "PROJECT" | "TEMPLATE")[]

        The scope filter string. To filter by multiple scope, provide an ampersand-separated list. For example, scope=GLOBAL&scope=PROJECT.

      • OptionalstartAt?: number

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanScreen>

    Returned if the request is successful.

    example:

    {
    "isLast": true,
    "maxResults": 100,
    "self": "https://your-domain.atlassian.net/rest/api/3/screens",
    "startAt": 0,
    "total": 3,
    "values": [
    {
    "id": 1,
    "name": "Default Screen",
    "description": "Provides for the update all system fields."
    },
    {
    "id": 2,
    "name": "Workflow Screen",
    "description": "This screen is used in the workflow and enables you to assign issues."
    },
    {
    "id": 3,
    "name": "Resolve Issue Screen",
    "description": "Offers the ability to set resolution, change fix versions, and assign an issue."
    }
    ]
    }

    GET /rest/api/3/screens @scopes-current manage:jira-project @scopes-beta read:project:jira, read:screen:jira, read:avatar:jira, read:project-category:jira

  • Returns a paginated list of the screens a field is used in.

    Permissions required: Administer Jira global permission.

    Parameters

    • params: {
          expand?: string;
          fieldId: string;
          maxResults?: number;
          startAt?: number;
      }
      • Optionalexpand?: string

        Use expand to include additional information about screens in the response. This parameter accepts tab which returns details about the screen tabs the field is used in.

      • fieldId: string

        The ID of the field to return screens for.

      • OptionalmaxResults?: number

        The maximum number of items to return per page.

      • OptionalstartAt?: number

        The index of the first item to return in a page of results (page offset).

    Returns Promise<PageBeanScreenWithTab>

    Returned if the request is successful.

    example:

    {
    "isLast": false,
    "maxResults": 1,
    "startAt": 0,
    "total": 5,
    "values": [
    {
    "id": 10001,
    "name": "Default Screen",
    "description": "Provides for the update of all system fields.",
    "tab": {
    "id": 10000,
    "name": "Fields Tab"
    }
    }
    ]
    }

    GET /rest/api/3/field/{fieldId}/screens @scopes-current manage:jira-project @scopes-beta read:screen:jira, read:avatar:jira, read:project-category:jira, read:project:jira, read:screen-tab:jira

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void