---
ai:
  exclude: true
search:
  tags:
    - project
    - GET
seo:
  description: >-
    Contains a full representation… Reference for the GET
    /api/2/project/{projectIdOrKey}/components endpoint in the Jira Software
    Data Center REST API Reference.
sidebar:
  label: Get project components
  badge: GET
title: Get project components
type: openapi-operation
---
Contains a full representation of the specified project's components.

`GET /api/2/project/{projectIdOrKey}/components`

**Responses**

- `200` — Project components
- `404` — Returned if the project is not found, or the calling user does not have permission to view it

Response example, 200:

```json
{
  "archived": false,
  "assigneeType": "PROJECT_LEAD",
  "deleted": false,
  "description": "This is a Jira component",
  "id": "10000",
  "lead": {
    "active": true,
    "applicationRoles": [
      "jira-core",
      "jira-admin",
      "important"
    ],
    "avatarUrls": {
      "48x48": "http://www.example.com/jira/secure/useravatar?size=large&ownerId=fred",
      "24x24": "http://www.example.com/jira/secure/useravatar?size=small&ownerId=fred",
      "16x16": "http://www.example.com/jira/secure/useravatar?size=xsmall&ownerId=fred",
      "32x32": "http://www.example.com/jira/secure/useravatar?size=medium&ownerId=fred"
    },
    "deleted": false,
    "displayName": "Fred F. User",
    "emailAddress": "fred@example.com",
    "expand": "string",
    "groups": {
      "callback": {},
      "maxResults": 0,
      "pagingCallback": {},
      "size": 0
    },
    "key": "JIRAUSER10100",
    "lastLoginTime": "2023-08-30T16:37:01+1000",
    "locale": "en_AU",
    "name": "fred",
    "self": "http://www.example.com/jira/rest/api/2.0/user?username=fred",
    "timeZone": "Australia/Sydney"
  },
  "leadUserName": "fred",
  "name": "Component 1",
  "project": "HSP",
  "self": "http://www.example.com/jira/rest/api/2/component/10000"
}
```
