/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { OperationsAsResponse } from "../definitions/OperationsAsResponse"; import { AtlassianDocumentFormat } from "@sr-connect/jira-cloud/types/adf"; export interface IssueBeanAsResponse { /** * Details of changelogs associated with the issue. */ changelog?: { /** * The list of changelogs. */ histories?: Array<{ /** * The user who made the change. */ author?: { /** * The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. */ accountId?: string; /** * The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user) */ accountType?: string; /** * Whether the user is active. */ active?: boolean; /** * The avatars of the user. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * The display name of the user. Depending on the user’s privacy settings, this may return an alternative value. */ displayName?: string; /** * The email address of the user. Depending on the user’s privacy settings, this may be returned as null. */ emailAddress?: string; /** * This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. */ key?: string; /** * This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. */ name?: string; /** * The URL of the user. */ self?: string; /** * The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null. */ timeZone?: string; }; /** * The date on which the change took place. */ created?: string; /** * The history metadata associated with the changed. */ historyMetadata?: { /** * The activity described in the history record. */ activityDescription?: string; /** * The key of the activity described in the history record. */ activityDescriptionKey?: string; /** * Details of the user whose action created the history record. */ actor?: { /** * The URL to an avatar for the user or system associated with a history record. */ avatarUrl?: string; /** * The display name of the user or system associated with a history record. */ displayName?: string; /** * The key of the display name of the user or system associated with a history record. */ displayNameKey?: string; /** * The ID of the user or system associated with a history record. */ id?: string; /** * The type of the user or system associated with a history record. */ type?: string; /** * The URL of the user or system associated with a history record. */ url?: string; [x: string]: any; }; /** * Details of the cause that triggered the creation the history record. */ cause?: { /** * The URL to an avatar for the user or system associated with a history record. */ avatarUrl?: string; /** * The display name of the user or system associated with a history record. */ displayName?: string; /** * The key of the display name of the user or system associated with a history record. */ displayNameKey?: string; /** * The ID of the user or system associated with a history record. */ id?: string; /** * The type of the user or system associated with a history record. */ type?: string; /** * The URL of the user or system associated with a history record. */ url?: string; [x: string]: any; }; /** * The description of the history record. */ description?: string; /** * The description key of the history record. */ descriptionKey?: string; /** * The description of the email address associated the history record. */ emailDescription?: string; /** * The description key of the email address associated the history record. */ emailDescriptionKey?: string; /** * Additional arbitrary information about the history record. */ extraData?: { [x: string]: string; }; /** * Details of the system that generated the history record. */ generator?: { /** * The URL to an avatar for the user or system associated with a history record. */ avatarUrl?: string; /** * The display name of the user or system associated with a history record. */ displayName?: string; /** * The key of the display name of the user or system associated with a history record. */ displayNameKey?: string; /** * The ID of the user or system associated with a history record. */ id?: string; /** * The type of the user or system associated with a history record. */ type?: string; /** * The URL of the user or system associated with a history record. */ url?: string; [x: string]: any; }; /** * The type of the history record. */ type?: string; [x: string]: any; }; /** * The ID of the changelog. */ id?: string; /** * The list of items changed. */ items?: Array<{ /** * The name of the field changed. */ field?: string; /** * The ID of the field changed. */ fieldId?: string; /** * The type of the field changed. */ fieldtype?: string; /** * The details of the original value. */ from?: string; /** * The details of the original value as a string. */ fromString?: string; /** * The details of the new value. */ to?: string; /** * The details of the new value as a string. */ toString?: string; }>; }>; /** * The maximum number of results that could be on the page. */ maxResults?: number; /** * The index of the first item returned on the page. */ startAt?: number; /** * The number of results on the page. */ total?: number; }; /** * The metadata for the fields on the issue that can be amended. */ editmeta?: { fields?: { [x: string]: { /** * The list of values allowed in the field. */ allowedValues?: Array; /** * The URL that can be used to automatically complete the field. */ autoCompleteUrl?: string; /** * The configuration properties. */ configuration?: { [x: string]: any; }; /** * The default value of the field. */ defaultValue?: any; /** * Whether the field has a default value. */ hasDefaultValue?: boolean; /** * The key of the field. */ key: string; /** * The name of the field. */ name: string; /** * The list of operations that can be performed on the field. */ operations: Array; /** * Whether the field is required. */ required: boolean; /** * The data type of the field. */ schema: { /** * If the field is a custom field, the configuration of the field. */ configuration?: { [x: string]: any; }; /** * If the field is a custom field, the URI of the field. */ custom?: string; /** * If the field is a custom field, the custom ID of the field. */ customId?: number; /** * When the data type is an array, the name of the field items within the array. */ items?: string; /** * If the field is a system field, the name of the field. */ system?: string; /** * The data type of the field. */ type: string; }; }; }; }; /** * Expand options that include additional issue details in the response. */ expand?: string; fields?: { sprint?: { id?: number; self?: string; state?: string; name?: string; startDate?: string; endDate?: string; createdDate?: string; originBoardId?: number; goal?: string; } | null; statusCategory?: { self?: string; id?: number; key?: string; colorName?: string; name?: string; }; epic?: { id: number; key: string; self: string; name: string; summary: string; color: { key: string; }; issueColor: { key: string; }; done: boolean; } | null; flagged?: boolean; aggregatetimespent?: number | null; statuscategorychangedate?: string; issuetype?: IssueTypeDetailsAsResponse; parent?: LinkedIssueAsResponse; timespent?: number | null; project?: ProjectAsResponse; fixVersions?: Array; aggregatedtimespent?: number; resolution?: ResolutionAsResponse | null; resolutiondate?: string | null; workratio?: number; lastViewed?: any; watches?: WatchersAsResponse; created?: string; priority?: PriorityAsResponse; labels?: Array; aggregatetimeoriginalestimate?: number | null; timeestimate?: number | null; versions?: Array; issuelinks?: Array; assignee?: UserDetailsAsResponse | null; updated?: string; status?: StatusDetailsAsResponse; components?: Array; timeoriginalestimate?: number | null; description?: any; timetracking?: { originalEstimate?: string; remainingEstimate?: string; timeSpent?: string; originalEsimateSeconds?: number; remainingEstimateSeconds?: number; timeSpentSeconds?: number; }; security?: { self?: string; id?: string; description?: string; name?: string; } | null; aggregatetimeestimate?: number | null; attachment?: Array; summary?: string; creator?: UserDetailsAsResponse; subtasks?: Array; reporter?: UserDetailsAsResponse; aggregateprogress?: { progress?: number; total?: number; percent?: number; } | null; environment?: any; duedate?: string | null; progress?: { progress?: number; total?: number; percent?: number; }; votes?: VotesAsResponse; comment?: PageOfCommentsAsResponse; worklog?: PageOfWorklogsAsResponse; issuerestriction?: { issuerestrictions?: any; shouldDisplay?: boolean; }; [x: string]: any; }; fieldsToInclude?: { actuallyIncluded?: Array; excluded?: Array; included?: Array; }; /** * The ID of the issue. */ id?: string; /** * The key of the issue. */ key?: string; /** * The ID and name of each field present on the issue. */ names?: { [x: string]: string; }; /** * The operations that can be performed on the issue. */ operations?: OperationsAsResponse; /** * Details of the issue properties identified in the request. */ properties?: { [x: string]: any; }; /** * The rendered value of each field present on the issue. */ renderedFields?: { [x: string]: any; }; /** * The schema describing each field present on the issue. */ schema?: { [x: string]: { /** * If the field is a custom field, the configuration of the field. */ configuration?: { [x: string]: any; }; /** * If the field is a custom field, the URI of the field. */ custom?: string; /** * If the field is a custom field, the custom ID of the field. */ customId?: number; /** * When the data type is an array, the name of the field items within the array. */ items?: string; /** * If the field is a system field, the name of the field. */ system?: string; /** * The data type of the field. */ type: string; }; }; /** * The URL of the issue details. */ self?: string; /** * The transitions that can be performed on the issue. */ transitions?: Array<{ /** * Expand options that include additional transition details in the response. */ expand?: string; /** * Details of the fields associated with the issue transition screen. Use this information to populate `fields` and `update` in a transition request. */ fields?: { [x: string]: { /** * The list of values allowed in the field. */ allowedValues?: Array; /** * The URL that can be used to automatically complete the field. */ autoCompleteUrl?: string; /** * The configuration properties. */ configuration?: { [x: string]: any; }; /** * The default value of the field. */ defaultValue?: any; /** * Whether the field has a default value. */ hasDefaultValue?: boolean; /** * The key of the field. */ key: string; /** * The name of the field. */ name: string; /** * The list of operations that can be performed on the field. */ operations: Array; /** * Whether the field is required. */ required: boolean; /** * The data type of the field. */ schema: { /** * If the field is a custom field, the configuration of the field. */ configuration?: { [x: string]: any; }; /** * If the field is a custom field, the URI of the field. */ custom?: string; /** * If the field is a custom field, the custom ID of the field. */ customId?: number; /** * When the data type is an array, the name of the field items within the array. */ items?: string; /** * If the field is a system field, the name of the field. */ system?: string; /** * The data type of the field. */ type: string; }; }; }; /** * Whether there is a screen associated with the issue transition. */ hasScreen?: boolean; /** * The ID of the issue transition. Required when specifying a transition to undertake. */ id?: string; /** * Whether the transition is available to be performed. */ isAvailable?: boolean; /** * Whether the issue has to meet criteria before the issue transition is applied. */ isConditional?: boolean; /** * Whether the issue transition is global, that is, the transition is applied to issues regardless of their status. */ isGlobal?: boolean; /** * Whether this is the initial issue transition for the workflow. */ isInitial?: boolean; looped?: boolean; /** * The name of the issue transition. */ name?: string; /** * Details of the issue status after the transition. */ to?: { /** * The description of the status. */ description?: string; /** * The URL of the icon used to represent the status. */ iconUrl?: string; /** * The ID of the status. */ id?: string; /** * The name of the status. */ name?: string; /** * The scope of the field. */ scope?: { /** * The project the item has scope in. */ project?: { /** * The URLs of the project's avatars. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * The ID of the project. */ id?: string; /** * The key of the project. */ key?: string; /** * The name of the project. */ name?: string; /** * The category the project belongs to. */ projectCategory?: { /** * The name of the project category. */ description?: string; /** * The ID of the project category. */ id?: string; /** * The description of the project category. */ name?: string; /** * The URL of the project category. */ self?: string; }; /** * The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. */ projectTypeKey?: "software" | "service_desk" | "business"; /** * The URL of the project details. */ self?: string; /** * Whether or not the project is simplified. */ simplified?: boolean; }; /** * The type of scope. */ type?: "PROJECT" | "TEMPLATE"; [x: string]: any; }; /** * The URL of the status. */ self?: string; /** * The category assigned to the status. */ statusCategory?: { /** * The name of the color used to represent the status category. */ colorName?: string; /** * The ID of the status category. */ id?: number; /** * The key of the status category. */ key?: string; /** * The name of the status category. */ name?: string; /** * The URL of the status category. */ self?: string; [x: string]: any; }; [x: string]: any; }; [x: string]: any; }>; /** * The versions of each field on the issue. */ versionedRepresentations?: { [x: string]: any; }; } interface PriorityAsResponse { /** * The description of the issue priority. */ description?: string; /** * The URL of the icon for the issue priority. */ iconUrl?: string; /** * The ID of the issue priority. */ id?: string; /** * Whether this priority is the default. */ isDefault?: boolean; /** * The name of the issue priority. */ name?: string; /** * The URL of the issue priority. */ self?: string; /** * The color used to indicate the issue priority. */ statusColor?: string; [x: string]: any; } interface IssueTypeDetailsAsResponse { /** * The URL of these issue type details. */ self?: string; /** * The ID of the issue type. */ id?: string; /** * The description of the issue type. */ description?: string; /** * The URL of the issue type's avatar. */ iconUrl?: string; /** * The name of the issue type. */ name?: string; /** * Whether this issue type is used to create subtasks. */ subtask?: boolean; /** * The ID of the issue type's avatar. */ avatarId?: number; /** * Unique ID for next-gen projects. */ entityId?: string; /** * Hierarchy level of the issue type. */ hierarchyLevel?: number; untranslatedName?: string; /** * Details of the next-gen projects the issue type is available in. */ scope?: ScopeAsResponse; } interface ScopeAsResponse { /** * The project the item has scope in. */ project?: ProjectDetailsAsResponse; /** * The type of scope. */ type?: "PROJECT" | "TEMPLATE"; [x: string]: any; } interface ProjectDetailsAsResponse { /** * The URLs of the project's avatars. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * The ID of the project. */ id?: string; /** * The key of the project. */ key?: string; /** * The name of the project. */ name?: string; /** * The category the project belongs to. */ projectCategory?: UpdatedProjectCategoryAsResponse; /** * The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. */ projectTypeKey?: "software" | "service_desk" | "business"; /** * The URL of the project details. */ self?: string; /** * Whether or not the project is simplified. */ simplified?: boolean; } interface AvatarUrlsBeanAsResponse { /** * The URL of the item's 16x16 pixel avatar. */ "16x16"?: string; /** * The URL of the item's 24x24 pixel avatar. */ "24x24"?: string; /** * The URL of the item's 32x32 pixel avatar. */ "32x32"?: string; /** * The URL of the item's 48x48 pixel avatar. */ "48x48"?: string; } interface UpdatedProjectCategoryAsResponse { /** * The name of the project category. */ description?: string; /** * The ID of the project category. */ id?: string; /** * The description of the project category. */ name?: string; /** * The URL of the project category. */ self?: string; } interface UserDetailsAsResponse { /** * The URL of the user. */ self?: string; /** * The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. */ accountId?: string; /** * The email address of the user. Depending on the user’s privacy settings, this may be returned as null. */ emailAddress?: string; /** * The avatars of the user. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * The display name of the user. Depending on the user’s privacy settings, this may return an alternative value. */ displayName?: string; /** * Whether the user is active. */ active?: boolean; /** * The time zone specified in the user's profile. Depending on the user’s privacy settings, this may be returned as null. */ timeZone?: string; /** * The type of account represented by this user. This will be one of 'atlassian' (normal users), 'app' (application user) or 'customer' (Jira Service Desk customer user) */ accountType?: string; } interface PageOfWorklogsAsResponse { /** * The maximum number of results that could be on the page. */ maxResults?: number; /** * The index of the first item returned on the page. */ startAt?: number; /** * The number of results on the page. */ total?: number; /** * List of worklogs. */ worklogs?: Array; [x: string]: any; } interface WorklogAsResponse { /** * The URL of the worklog item. */ self?: string; /** * Details of the user who created the worklog. */ author?: UserDetailsAsResponse; /** * Details of the user who last updated the worklog. */ updateAuthor?: UserDetailsAsResponse; /** * A comment about the worklog in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). Optional when creating or updating a worklog. */ comment?: AtlassianDocumentFormat; /** * The datetime on which the worklog was created. */ created?: string; /** * The datetime on which the worklog was last updated. */ updated?: string; /** * Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog. */ visibility?: VisibilityAsResponse; /** * The datetime on which the worklog effort was started. Required when creating a worklog. Optional when updating a worklog. */ started?: string; /** * The time spent working on the issue as days (\#d), hours (\#h), or minutes (\#m or \#). Required when creating a worklog if `timeSpentSeconds` isn't provided. Optional when updating a worklog. Cannot be provided if `timeSpentSecond` is provided. */ timeSpent?: string; /** * The time in seconds spent working on the issue. Required when creating a worklog if `timeSpent` isn't provided. Optional when updating a worklog. Cannot be provided if `timeSpent` is provided. */ timeSpentSeconds?: number; /** * The ID of the worklog record. */ id?: string; /** * The ID of the issue this worklog is for. */ issueId?: string; /** * Details of properties for the worklog. Optional when creating or updating a worklog. */ properties?: Array; [x: string]: any; } interface EntityPropertyAsResponse { /** * The key of the property. Required on create and update. */ key?: string; /** * The value of the property. Required on create and update. */ value?: any; } interface VisibilityAsResponse { /** * The ID of the group or the name of the role that visibility of this item is restricted to. */ identifier?: string; /** * Whether visibility of this item is restricted to a group or role. */ type?: "group" | "role"; /** * The name of the group or role that visibility of this item is restricted to. Please note that the name of a group is mutable, to reliably identify a group use `identifier`. */ value?: string; [x: string]: any; } interface AttachmentAsResponse { /** * Details of the user who added the attachment. */ author?: UserDetailsAsResponse; /** * The content of the attachment. */ content?: string; /** * The datetime the attachment was created. */ created?: string; /** * The file name of the attachment. */ filename?: string; /** * The ID of the attachment. */ id?: string; /** * The MIME type of the attachment. */ mimeType?: string; /** * The URL of the attachment details response. */ self?: string; /** * The size of the attachment. */ size?: number; /** * The URL of a thumbnail representing the attachment. */ thumbnail?: string; [x: string]: any; } interface PageOfCommentsAsResponse { /** * The index of the first item returned. */ startAt?: number; /** * The maximum number of items that could be returned. */ maxResults?: number; /** * The number of items returned. */ total?: number; /** * The list of comments. */ comments?: Array; /** * The URL of the user. */ self?: string; [x: string]: any; } interface CommentAsResponse { /** * The URL of the comment. */ self?: string; /** * The ID of the comment. */ id?: string; /** * The ID of the user who created the comment. */ author?: UserDetailsAsResponse; /** * The comment text in [Atlassian Document Format](https://developer.atlassian.com/cloud/jira/platform/apis/document/structure/). */ body?: AtlassianDocumentFormat; /** * The rendered version of the comment. */ renderedBody?: string; /** * The ID of the user who updated the comment last. */ updateAuthor?: UserDetailsAsResponse; /** * The date and time at which the comment was created. */ created?: string; /** * The date and time at which the comment was updated last. */ updated?: string; /** * The group or role to which this comment is visible. Optional on create and update. */ visibility?: VisibilityAsResponse; /** * Whether the comment is visible in Jira Service Desk. Defaults to true when comments are created in the Jira Cloud Platform. This includes when the site doesn't use Jira Service Desk or the project isn't a Jira Service Desk project and, therefore, there is no Jira Service Desk for the issue to be visible on. To create a comment with its visibility in Jira Service Desk set to false, use the Jira Service Desk REST API [Create request comment](https://developer.atlassian.com/cloud/jira/service-desk/rest/#api-rest-servicedeskapi-request-issueIdOrKey-comment-post) operation. */ jsdPublic?: boolean; /** * A list of comment properties. Optional on create and update. */ properties?: Array; [x: string]: any; } interface StatusDetailsAsResponse { /** * The description of the status. */ description?: string; /** * The URL of the icon used to represent the status. */ iconUrl?: string; /** * The ID of the status. */ id?: string; /** * The name of the status. */ name?: string; /** * The URL of the status. */ self?: string; /** * The category assigned to the status. */ statusCategory?: StatusCategoryAsResponse; [x: string]: any; } interface StatusCategoryAsResponse { /** * The name of the color used to represent the status category. */ colorName?: string; /** * The ID of the status category. */ id?: number; /** * The key of the status category. */ key?: string; /** * The name of the status category. */ name?: string; /** * The URL of the status category. */ self?: string; [x: string]: any; } interface LinkedIssueAsResponse { /** * The fields associated with the issue. */ fields?: FieldsAsResponse; /** * The ID of an issue. Required if `key` isn't provided. */ id?: string; /** * The key of an issue. Required if `id` isn't provided. */ key?: string; /** * The URL of the issue. */ self?: string; } interface FieldsAsResponse { /** * The assignee of the linked issue. */ assignee?: UserDetailsAsResponse; /** * The type of the linked issue. */ issueType?: IssueTypeDetailsAsResponse; /** * The type of the linked issue. */ issuetype?: IssueTypeDetailsAsResponse; /** * The priority of the linked issue. */ priority?: PriorityAsResponse; /** * The status of the linked issue. */ status?: StatusDetailsAsResponse; /** * The summary description of the linked issue. */ summary?: string; /** * The time tracking of the linked issue. */ timetracking?: TimeTrackingDetailsAsResponse; } interface TimeTrackingDetailsAsResponse { /** * The original estimate of time needed for this issue in readable format. */ originalEstimate?: string; /** * The original estimate of time needed for this issue in seconds. */ originalEstimateSeconds?: number; /** * The remaining estimate of time needed for this issue in readable format. */ remainingEstimate?: string; /** * The remaining estimate of time needed for this issue in seconds. */ remainingEstimateSeconds?: number; /** * Time worked on this issue in readable format. */ timeSpent?: string; /** * Time worked on this issue in seconds. */ timeSpentSeconds?: number; } interface IssueLinkAsResponse { /** * The ID of the issue link. */ id?: string; /** * The URL of the issue link. */ self?: string; /** * The type of link between the issues. */ type: IssueLinkTypeAsResponse; /** * The issue the link joins to. */ inwardIssue?: LinkedIssueAsResponse; /** * The issue the link originates from. */ outwardIssue?: LinkedIssueAsResponse; } interface IssueLinkTypeAsResponse { /** * The ID of the issue link type and is used as follows: * In the [ issueLink](#api-rest-api-3-issueLink-post) resource it is the type of issue link. Required on create when `name` isn't provided. Otherwise, read only. * In the [ issueLinkType](#api-rest-api-3-issueLinkType-post) resource it is read only. */ id?: string; /** * The description of the issue link type inward link and is used as follows: * In the [ issueLink](#api-rest-api-3-issueLink-post) resource it is read only. * In the [ issueLinkType](#api-rest-api-3-issueLinkType-post) resource it is required on create and optional on update. Otherwise, read only. */ inward?: string; /** * The name of the issue link type and is used as follows: * In the [ issueLink](#api-rest-api-3-issueLink-post) resource it is the type of issue link. Required on create when `id` isn't provided. Otherwise, read only. * In the [ issueLinkType](#api-rest-api-3-issueLinkType-post) resource it is required on create and optional on update. Otherwise, read only. */ name?: string; /** * The description of the issue link type outward link and is used as follows: * In the [ issueLink](#api-rest-api-3-issueLink-post) resource it is read only. * In the [ issueLinkType](#api-rest-api-3-issueLinkType-post) resource it is required on create and optional on update. Otherwise, read only. */ outward?: string; /** * The URL of the issue link type. Read only. */ self?: string; } interface VotesAsResponse { /** * Whether the user making this request has voted on the issue. */ hasVoted?: boolean; /** * The URL of these issue vote details. */ self?: string; /** * List of the users who have voted on this issue. An empty list is returned when the calling user doesn't have the *View voters and watchers* project permission. */ voters?: Array; /** * The number of votes on the issue. */ votes?: number; } interface UserAsResponse { /** * The URL of the user. */ self?: string; /** * The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required in requests. */ accountId?: string; /** * The user account type. Can take the following values: * `atlassian` regular Atlassian user account * `app` system account used for Connect applications and OAuth to represent external systems * `customer` Jira Service Desk account representing an external service desk */ accountType?: "atlassian" | "app" | "customer" | "unknown"; /** * The email address of the user. Depending on the user’s privacy setting, this may be returned as null. */ emailAddress?: string; /** * The avatars of the user. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * The display name of the user. Depending on the user’s privacy setting, this may return an alternative value. */ displayName?: string; /** * Whether the user is active. */ active?: boolean; /** * The time zone specified in the user's profile. Depending on the user’s privacy setting, this may be returned as null. */ timeZone?: string; /** * The locale of the user. Depending on the user’s privacy setting, this may be returned as null. */ locale?: string; /** * The groups that the user belongs to. */ groups?: SimpleListWrapperGroupNameAsResponse; /** * The application roles the user is assigned to. */ applicationRoles?: SimpleListWrapperApplicationRoleAsResponse; /** * Expand options that include additional user details in the response. */ expand?: string; } interface SimpleListWrapperGroupNameAsResponse { callback?: ListWrapperCallbackGroupNameAsResponse; items?: Array; "max-results"?: number; pagingCallback?: ListWrapperCallbackGroupNameAsResponse; size?: number; } declare type ListWrapperCallbackGroupNameAsResponse = any; interface GroupNameAsResponse { /** * The ID of the group, which uniquely identifies the group across all Atlassian products. For example, *952d12c3-5b5b-4d04-bb32-44d383afc4b2*. */ groupId?: string; /** * The name of group. */ name?: string; /** * The URL for these group details. */ self?: string; } interface SimpleListWrapperApplicationRoleAsResponse { callback?: ListWrapperCallbackApplicationRoleAsResponse; items?: Array; "max-results"?: number; pagingCallback?: ListWrapperCallbackApplicationRoleAsResponse; size?: number; } declare type ListWrapperCallbackApplicationRoleAsResponse = any; interface ApplicationRoleAsResponse { /** * The groups that are granted default access for this application role. As a group's name can change, use of `defaultGroupsDetails` is recommended to identify a groups. */ defaultGroups?: Array; /** * The groups that are granted default access for this application role. */ defaultGroupsDetails?: Array; /** * Deprecated. */ defined?: boolean; /** * The groups associated with the application role. */ groupDetails?: Array; /** * The groups associated with the application role. As a group's name can change, use of `groupDetails` is recommended to identify a groups. */ groups?: Array; hasUnlimitedSeats?: boolean; /** * The key of the application role. */ key?: string; /** * The display name of the application role. */ name?: string; /** * The maximum count of users on your license. */ numberOfSeats?: number; /** * Indicates if the application role belongs to Jira platform (`jira-core`). */ platform?: boolean; /** * The count of users remaining on your license. */ remainingSeats?: number; /** * Determines whether this application role should be selected by default on user creation. */ selectedByDefault?: boolean; /** * The number of users counting against your license. */ userCount?: number; /** * The [type of users](https://confluence.atlassian.com/x/lRW3Ng) being counted against your license. */ userCountDescription?: string; } interface WatchersAsResponse { /** * Whether the calling user is watching this issue. */ isWatching?: boolean; /** * The URL of these issue watcher details. */ self?: string; /** * The number of users watching this issue. */ watchCount?: number; /** * Details of the users watching this issue. */ watchers?: Array; } interface SimpleLinkAsResponse { href?: string; iconClass?: string; id?: string; label?: string; styleClass?: string; title?: string; weight?: number; } interface VersionAsResponse { /** * Use [expand](em>#expansion) to include additional information about version in the response. This parameter accepts a comma-separated list. Expand options include: * `operations` Returns the list of operations available for this version. * `issuesstatus` Returns the count of issues in this version for each of the status categories *to do*, *in progress*, *done*, and *unmapped*. The *unmapped* property contains a count of issues with a status other than *to do*, *in progress*, and *done*. Optional for create and update. */ expand?: string; /** * The URL of the version. */ self?: string; /** * The ID of the version. */ id?: string; /** * The description of the version. Optional when creating or updating a version. */ description?: string; /** * The unique name of the version. Required when creating a version. Optional when updating a version. The maximum length is 255 characters. */ name?: string; /** * Indicates that the version is archived. Optional when creating or updating a version. */ archived?: boolean; /** * Indicates that the version is released. If the version is released a request to release again is ignored. Not applicable when creating a version. Optional when updating a version. */ released?: boolean; /** * The start date of the version. Expressed in ISO 8601 format (yyyy-mm-dd). Optional when creating or updating a version. */ startDate?: string; /** * The release date of the version. Expressed in ISO 8601 format (yyyy-mm-dd). Optional when creating or updating a version. */ releaseDate?: string; /** * Indicates that the version is overdue. */ overdue?: boolean; /** * The date on which work on this version is expected to start, expressed in the instance's *Day/Month/Year Format* date format. */ userStartDate?: string; /** * The date on which work on this version is expected to finish, expressed in the instance's *Day/Month/Year Format* date format. */ userReleaseDate?: string; /** * The ID of the project to which this version is attached. Required when creating a version. Not applicable when updating a version. */ projectId?: number; /** * The URL of the self link to the version to which all unfixed issues are moved when a version is released. Not applicable when creating a version. Optional when updating a version. */ moveUnfixedIssuesTo?: string; /** * If the expand option `operations` is used, returns the list of operations available for this version. */ operations?: Array; /** * If the expand option `issuesstatus` is used, returns the count of issues in this version for each of the status categories *to do*, *in progress*, *done*, and *unmapped*. The *unmapped* property contains a count of issues with a status other than *to do*, *in progress*, and *done*. */ issuesStatusForFixVersion?: VersionIssuesStatusAsResponse; } interface VersionIssuesStatusAsResponse { /** * Count of issues with status *done*. */ done?: number; /** * Count of issues with status *in progress*. */ inProgress?: number; /** * Count of issues with status *to do*. */ toDo?: number; /** * Count of issues with a status other than *to do*, *in progress*, and *done*. */ unmapped?: number; [x: string]: any; } interface ProjectAsResponse { /** * Whether the project is archived. */ archived?: boolean; /** * The user who archived the project. */ archivedBy?: UserAsResponse; /** * The date when the project was archived. */ archivedDate?: string; /** * The default assignee when creating issues for this project. */ assigneeType?: "PROJECT_LEAD" | "UNASSIGNED"; /** * The URLs of the project's avatars. */ avatarUrls?: AvatarUrlsBeanAsResponse; /** * List of the components contained in the project. */ components?: Array; /** * Whether the project is marked as deleted. */ deleted?: boolean; /** * The user who marked the project as deleted. */ deletedBy?: UserAsResponse; /** * The date when the project was marked as deleted. */ deletedDate?: string; /** * A brief description of the project. */ description?: string; /** * An email address associated with the project. */ email?: string; /** * Expand options that include additional project details in the response. */ expand?: string; /** * Whether the project is selected as a favorite. */ favourite?: boolean; /** * The ID of the project. */ id?: string; /** * Insights about the project. */ insight?: ProjectInsightAsResponse; /** * Whether the project is private. */ isPrivate?: boolean; /** * The issue type hierarchy for the project. */ issueTypeHierarchy?: HierarchyAsResponse; /** * List of the issue types available in the project. */ issueTypes?: Array; /** * The key of the project. */ key?: string; /** * The project landing page info. */ landingPageInfo?: ProjectLandingPageInfoAsResponse; /** * The username of the project lead. */ lead?: UserAsResponse; /** * The name of the project. */ name?: string; /** * User permissions on the project */ permissions?: ProjectPermissionsAsResponse; /** * The category the project belongs to. */ projectCategory?: ProjectCategoryAsResponse; /** * The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) of the project. */ projectTypeKey?: "software" | "service_desk" | "business"; /** * Map of project properties */ properties?: { [x: string]: any; }; /** * The date when the project is deleted permanently. */ retentionTillDate?: string; /** * The name and self URL for each role defined in the project. For more information, see [Create project role](#api-rest-api-3-role-post). */ roles?: { [x: string]: string; }; /** * The URL of the project details. */ self?: string; /** * Whether the project is simplified. */ simplified?: boolean; /** * The type of the project. */ style?: "classic" | "next-gen"; /** * A link to information about this project, such as project documentation. */ url?: string; /** * Unique ID for next-gen projects. */ uuid?: string; /** * The versions defined in the project. For more information, see [Create version](#api-rest-api-3-version-post). */ versions?: Array; } interface ProjectComponentAsResponse { /** * The details of the user associated with `assigneeType`, if any. See `realAssignee` for details of the user assigned to issues created with this component. */ assignee?: UserAsResponse; /** * The nominal user type used to determine the assignee for issues created with this component. See `realAssigneeType` for details on how the type of the user, and hence the user, assigned to issues is determined. Can take the following values: * `PROJECT_LEAD` the assignee to any issues created with this component is nominally the lead for the project the component is in. * `COMPONENT_LEAD` the assignee to any issues created with this component is nominally the lead for the component. * `UNASSIGNED` an assignee is not set for issues created with this component. * `PROJECT_DEFAULT` the assignee to any issues created with this component is nominally the default assignee for the project that the component is in. Default value: `PROJECT_DEFAULT`. Optional when creating or updating a component. */ assigneeType?: "PROJECT_DEFAULT" | "COMPONENT_LEAD" | "PROJECT_LEAD" | "UNASSIGNED"; /** * The description for the component. Optional when creating or updating a component. */ description?: string; /** * The unique identifier for the component. */ id?: string; /** * Whether a user is associated with `assigneeType`. For example, if the `assigneeType` is set to `COMPONENT_LEAD` but the component lead is not set, then `false` is returned. */ isAssigneeTypeValid?: boolean; /** * The user details for the component's lead user. */ lead?: UserAsResponse; /** * This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. */ leadUserName?: string; /** * The unique name for the component in the project. Required when creating a component. Optional when updating a component. The maximum length is 255 characters. */ name?: string; /** * The key of the project the component is assigned to. Required when creating a component. Can't be updated. */ project?: string; /** * The ID of the project the component is assigned to. */ projectId?: number; /** * The user assigned to issues created with this component, when `assigneeType` does not identify a valid assignee. */ realAssignee?: UserAsResponse; /** * The type of the assignee that is assigned to issues created with this component, when an assignee cannot be set from the `assigneeType`. For example, `assigneeType` is set to `COMPONENT_LEAD` but no component lead is set. This property is set to one of the following values: * `PROJECT_LEAD` when `assigneeType` is `PROJECT_LEAD` and the project lead has permission to be assigned issues in the project that the component is in. * `COMPONENT_LEAD` when `assignee`Type is `COMPONENT_LEAD` and the component lead has permission to be assigned issues in the project that the component is in. * `UNASSIGNED` when `assigneeType` is `UNASSIGNED` and Jira is configured to allow unassigned issues. * `PROJECT_DEFAULT` when none of the preceding cases are true. */ realAssigneeType?: "PROJECT_DEFAULT" | "COMPONENT_LEAD" | "PROJECT_LEAD" | "UNASSIGNED"; /** * The URL of the component. */ self?: string; } interface ProjectInsightAsResponse { /** * The last issue update time. */ lastIssueUpdateTime?: string; /** * Total issue count. */ totalIssueCount?: number; } interface HierarchyAsResponse { /** * The ID of the base level. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ baseLevelId?: number; /** * Details about the hierarchy level. */ levels?: Array; } interface SimplifiedHierarchyLevelAsResponse { /** * The ID of the level above this one in the hierarchy. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ aboveLevelId?: number; /** * The ID of the level below this one in the hierarchy. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ belowLevelId?: number; /** * The external UUID of the hierarchy level. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ externalUuid?: string; hierarchyLevelNumber?: number; /** * The ID of the hierarchy level. This property is deprecated, see [Change notice: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ id?: number; /** * The issue types available in this hierarchy level. */ issueTypeIds?: Array; /** * The level of this item in the hierarchy. */ level?: number; /** * The name of this hierarchy level. */ name?: string; /** * The ID of the project configuration. This property is deprecated, see [Change oticen: Removing hierarchy level IDs from next-gen APIs](https://developer.atlassian.com/cloud/jira/platform/change-notice-removing-hierarchy-level-ids-from-next-gen-apis/). */ projectConfigurationId?: number; } interface ProjectLandingPageInfoAsResponse { attributes?: { [x: string]: string; }; boardId?: number; boardName?: string; projectKey?: string; projectType?: string; queueCategory?: string; queueId?: number; queueName?: string; simpleBoard?: boolean; simplified?: boolean; url?: string; } interface ProjectPermissionsAsResponse { /** * Whether the logged user can edit the project. */ canEdit?: boolean; } interface ProjectCategoryAsResponse { /** * The description of the project category. */ description?: string; /** * The ID of the project category. */ id?: string; /** * The name of the project category. Required on create, optional on update. */ name?: string; /** * The URL of the project category. */ self?: string; } interface ResolutionAsResponse { /** * The description of the issue resolution. */ description?: string; /** * The ID of the issue resolution. */ id?: string; /** * The name of the issue resolution. */ name?: string; /** * The URL of the issue resolution. */ self?: string; } interface ComponentAsResponse { /** * The URL of the component. */ self?: string; /** * The unique identifier for the component. */ id?: string; /** * The unique name for the component in the project. Required when creating a component. Optional when updating a component. The maximum length is 255 characters. */ name?: string; /** * The description for the component. Optional when creating or updating a component. */ description?: string; /** * The user details for the component's lead user. */ lead?: UserAsResponse; /** * The nominal user type used to determine the assignee for issues created with this component. See `realAssigneeType` for details on how the type of the user, and hence the user, assigned to issues is determined. Can take the following values: * `PROJECT_LEAD` the assignee to any issues created with this component is nominally the lead for the project the component is in. * `COMPONENT_LEAD` the assignee to any issues created with this component is nominally the lead for the component. * `UNASSIGNED` an assignee is not set for issues created with this component. * `PROJECT_DEFAULT` the assignee to any issues created with this component is nominally the default assignee for the project that the component is in. Default value: `PROJECT_DEFAULT`. Optional when creating or updating a component. */ assigneeType?: "PROJECT_DEFAULT" | "COMPONENT_LEAD" | "PROJECT_LEAD" | "UNASSIGNED"; /** * The details of the user associated with `assigneeType`, if any. See `realAssignee` for details of the user assigned to issues created with this component. */ assignee?: UserAsResponse; /** * The type of the assignee that is assigned to issues created with this component, when an assignee cannot be set from the `assigneeType`. For example, `assigneeType` is set to `COMPONENT_LEAD` but no component lead is set. This property is set to one of the following values: * `PROJECT_LEAD` when `assigneeType` is `PROJECT_LEAD` and the project lead has permission to be assigned issues in the project that the component is in. * `COMPONENT_LEAD` when `assignee`Type is `COMPONENT_LEAD` and the component lead has permission to be assigned issues in the project that the component is in. * `UNASSIGNED` when `assigneeType` is `UNASSIGNED` and Jira is configured to allow unassigned issues. * `PROJECT_DEFAULT` when none of the preceding cases are true. */ realAssigneeType?: "PROJECT_DEFAULT" | "COMPONENT_LEAD" | "PROJECT_LEAD" | "UNASSIGNED"; /** * The user assigned to issues created with this component, when `assigneeType` does not identify a valid assignee. */ realAssignee?: UserAsResponse; /** * Whether a user is associated with `assigneeType`. For example, if the `assigneeType` is set to `COMPONENT_LEAD` but the component lead is not set, then `false` is returned. */ isAssigneeTypeValid?: boolean; /** * The key of the project the component is assigned to. Required when creating a component. Can't be updated. */ project?: string; /** * The ID of the project the component is assigned to. */ projectId?: number; } export {}; //# sourceMappingURL=IssueBeanAsResponse.d.ts.map