Skip to content
atlassian-dc-mcp
Esc
↑↓navigate↵open⌘Jpreview

Get project component

Returns a project component.

GET/api/2/component/{id}
Authorization
AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

or
AuthorizationBearer token · headerrequired

Personal Access Token — Administration > Profile > Personal Access Tokens

AuthorizationBasic auth · headerrequired

In order to use basic authorization, provide username:password Base64 encoded in the 'Authorization' header.

Path parameters
idstringrequired

a String containing the component key

Responses
200

Returns a full JSON representation of a project component.

archivedboolean
assigneeTypestring
Allowed:PROJECT_DEFAULTCOMPONENT_LEADPROJECT_LEADUNASSIGNED
deletedboolean
descriptionstring
idstring
leadUserBean
Show properties
activeboolean
applicationRolesSimpleListWrapperApplicationRoleBean
Show properties
callbackListWrapperCallbackApplicationRoleBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackApplicationRoleBean
sizeinteger<int32>
avatarUrlsobject
deletedboolean
displayNamestring
emailAddressstring
expandstring
groupsSimpleListWrapperGroupJsonBean
Show properties
callbackListWrapperCallbackGroupJsonBean
maxResultsinteger<int32>
pagingCallbackListWrapperCallbackGroupJsonBean
sizeinteger<int32>
keystring
lastLoginTimestring
localestring
namestring
selfstring<uri>
timeZonestring
leadUserNamestring
namestring
projectstring
selfstring<uri>
404

Returned if there is no component with the given key, or if the calling user does not have permission to view the component.

Try it
Server
Authorization
Parameters
Request
curl -X GET 'http://jira.example.com/rest/api/2/component/string' \
  -H 'Authorization: Basic YOUR_CREDENTIALS' \
  -H 'Accept: application/json'
Response
{
  "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"
}

Was this page helpful?