Lettura da entità Jira Cloud
Prerequisito
Un oggetto di Jira Cloud da cui desideri leggere. È necessario il nome dell'oggetto, come Record audit, o Problema. Nella tabella seguente sono illustrate le entità supportate.
Entità supportate come origine:
| Entità | Può essere filtrato | Supporta limite | Supporta Ordina per | Supporta Seleziona * | Supporta il partizionamento |
|---|---|---|---|---|---|
| Record audit | Sì | Sì | No | Sì | Sì |
| Problema | Sì | Sì | No | Sì | Sì |
| Campo Problema | No | No | No | Sì | No |
| Configurazione del campo Problema | Sì | Sì | No | Sì | Sì |
| Tipo di link del problema | No | No | No | Sì | No |
| Schema di notifica del problema | Sì | Sì | No | Sì | Sì |
| Schema di sicurezza del problema | No | No | No | Sì | No |
| Schema del tipo di problema | Sì | Sì | Sì | Sì | Sì |
| Schema del tipo di schermo del problema | Sì | Sì | Sì | Sì | Sì |
| Tipo di problema | No | No | No | Sì | No |
| Impostazioni Jira | Sì | No | No | Sì | No |
| Impostazioni avanzate di Jira | No | No | No | Sì | No |
| Impostazioni generali di Jira | No | No | No | Sì | No |
| Etichetta | No | No | No | Sì | Sì |
| Me stesso | Sì | No | No | Sì | No |
| Autorizzazione | No | No | No | Sì | No. |
| Progetto | Sì | Sì | Sì | Sì | Sì |
| Categoria di progetto | No | No | No | Sì | No |
| Tipo di progetto | No | No | No | Sì | No |
| Informazioni sul server | No | No | No | Sì | No |
| Utenti | No | No | No. | Sì | No |
| Flusso di lavoro | Sì | Sì | Sì | Sì | Sì |
| Schema del flusso di lavoro | No | Sì | No | Sì | Sì |
| Associazione di progetti dello schema del flusso di lavoro | Sì | No | No | Sì | No |
| Stato del flusso di lavoro | No | No | No | Sì | No |
| Categoria di stato del flusso di lavoro | No | No | No | Sì | No |
Esempio:
jiracloud_read = glueContext.create_dynamic_frame.from_options( connection_type="JiraCloud", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "audit-record", "API_VERSION": "v2" }
Dettagli dell'entità e del campo di Jira Cloud:
| Oggetto | Campo | Tipo di dati | Operatori di filtro supportati |
|---|---|---|---|
| Record audit | filter | Stringa | "=" |
| from | DateTime | "=" | |
| in | DateTime | "=" | |
| id | Numero intero | N/D | |
| riepilogo | Stringa | N/A | |
| remoteAddress | Stringa | N/A | |
| authorAccountId | Stringa | N/A | |
| creato | Stringa | N/A | |
| category | Stringa | N/A | |
| eventSource | Stringa | N/A | |
| description | Stringa | N/A | |
| objectItem | Struct | N/D | |
| changedValues | Elenco | N/D | |
| associatedItems | Elenco | N/D | |
| Groups (Gruppi) | groupName | Elenco | "=" |
| nome | Stringa | N/A | |
| groupId | Stringa | "=" | |
| Problema | affectedVersion | Stringa | "=, !=" |
| assegnatario | Stringa | "=, !=" | |
| category | Stringa | "=, !=" | |
| componente | Stringa | "=, !=" | |
| creatore | Stringa | "=, !=" | |
| scadenza | DateTime | N/D | |
| epic_link | Stringa | "=, !=" | |
| filter | Stringa | "=, !=" | |
| fixVersion | Stringa | "=, !=" | |
| hierarchyLevel | Numero intero | "=, !=" | |
| issueKey | Stringa | "=, !=, >, <, >=, <=" | |
| issueLink | Stringa | "=, !=" | |
| issueLinkType | Stringa | "=, !=" | |
| labels | Stringa | "=, !=" | |
| lastViewed | DateTime | "=, >, <, >=, <=, between" | |
| level | Stringa | "=, !=" | |
| parent | Stringa | "=, !=" | |
| priority | Stringa | "=, !=" | |
| project | Stringa | "=, !=" | |
| projectType | Stringa | "=, !=" | |
| reporter | Stringa | "=, !=" | |
| risoluzione | Stringa | "=, !=" | |
| risolto | DateTime | "=, >, <, >=, <=, between" | |
| sprint | Stringa | "=, !=" | |
| status | Stringa | "=, !=" | |
| tipo | Stringa | "=, !=" | |
| updated | DateTime | "=, >, <, >=, <=, between" | |
| votante | Stringa | "=, !=" | |
| voti | Numero intero | "=, !=, <, >, <=, >=, between" | |
| osservatore | Stringa | "=, !=" | |
| watcher | Numero intero | "=, !=, <, >, <=, >=, between" | |
| workRatio | Numero intero | "=, !=, <, >, <=, >=, between" | |
| validateQuery | Stringa | "=" | |
| espansione | Stringa | "=" | |
| fieldByKeys | Booleano | "=" | |
| id | Stringa | N/A | |
| self | Stringa | N/A | |
| key | Stringa | N/A | |
| renderedFields | Struct | N/D | |
| properties | Elenco | "=" | |
| nomi | Struct | N/D | |
| schema | Struct | N/D | |
| transizioni | Elenco | N/D | |
| operazioni | Struct | N/D | |
| editmeta | Struct | N/D | |
| changelog | Struct | N/D | |
| versionedRepresentations | Struct | N/D | |
| campi | Elenco | "=" | |
| fieldsToInclude | Struct | N/D | |
| warningMessages | Elenco | N/D | |
| creato | DateTime | N/D | |
| worklogDate | DateTime | N/D | |
| IssueEvents | id | Numero intero | N/D |
| nome | Stringa | N/A | |
| Issue Fields | id | Stringa | N/A |
| key | Stringa | N/A | |
| nome | Stringa | N/A | |
| personalizzato | Booleano | N/D | |
| ordinabile | Booleano | N/D | |
| navigabile | Booleano | N/D | |
| searchable | Booleano | N/D | |
| clauseNames | Elenco | N/D | |
| scope | Struct | N/D | |
| schema | Struct | N/D | |
| Configurazioni del campo Problema | IsDefault | Booleano | "=" |
| query | Stringa | "=" | |
| id | Numero intero | "=" | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| Tipo di link del problema | id | Stringa | N/A |
| nome | Stringa | N/A | |
| verso l'interno | Stringa | N/A | |
| verso l'esterno | Stringa | N/A | |
| self | Stringa | N/A | |
| Schemi di notifica del problema | espansione | Stringa | "=" |
| self | Stringa | N/A | |
| id | Numero intero | N/D | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| notificationSchemeEvents | Elenco | N/D | |
| scope | Struct | N/D | |
| Priorità del problema | self | Stringa | N/A |
| statusColor | Stringa | N/A | |
| description | Stringa | N/A | |
| iconUrl | Stringa | N/A | |
| nome | Stringa | N/A | |
| id | Stringa | N/A | |
| isDefault | Booleano | N/D | |
| Risoluzione del problema | self | Stringa | N/A |
| id | Stringa | N/A | |
| description | Stringa | N/A | |
| nome | Stringa | N/A | |
| Schema di sicurezza del problema | self | Stringa | N/A |
| id | Numero intero | N/D | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| defaultSecurityLevelId | Numero intero | N/D | |
| livelli | Elenco | N/D | |
| Tipo di problema | self | Stringa | N/A |
| id | Stringa | N/A | |
| description | Stringa | N/A | |
| iconUrl | Stringa | N/A | |
| nome | Stringa | N/A | |
| attività secondaria | Booleano | N/D | |
| avatarId | Numero intero | N/D | |
| entityId | Stringa | N/A | |
| hierarchyLevel | Numero intero | N/D | |
| scope | Struct | N/D | |
| Schema del tipo di problema | orderBy | Stringa | "=" |
| espansione | Stringa | "=" | |
| queryString | Stringa | "=" | |
| id | Stringa | N/A | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| defaultIssueTypeId | Stringa | N/A | |
| isDefault | Booleano | N/D | |
| Schema del tipo di schermo del problema | queryString | Stringa | "=" |
| orderBy | Stringa | "=" | |
| espansione | Stringa | "=" | |
| id | Stringa | "=" | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| Impostazioni Jira | key | Stringa | N/A |
| keyFilter | Stringa | "=" | |
| id | Stringa | N/A | |
| value | Stringa | N/A | |
| nome | Stringa | N/A | |
| desc | Stringa | N/A | |
| tipo | Stringa | N/A | |
| defaultValue | Stringa | N/A | |
| example | Stringa | N/A | |
| allowedValues | Elenco | N/D | |
| Impostazioni avanzate di Jira | id | Stringa | N/A |
| key | Stringa | N/A | |
| value | Stringa | N/A | |
| nome | Stringa | N/A | |
| desc | Stringa | N/A | |
| tipo | Stringa | N/A | |
| defaultValue | Stringa | N/A | |
| example | Stringa | N/A | |
| allowedValues | Elenco | N/D | |
| Impostazioni generali di Jira | votingEnabled | Booleano | N/D |
| watchingEnabled | Booleano | N/D | |
| unassignedIssuesAllowed | Booleano | N/D | |
| subTasksEnabled | Booleano | N/D | |
| issueLinkingEnabled | Booleano | N/D | |
| timeTrackingEnabled | Booleano | N/D | |
| attachmentsEnabled | Booleano | N/D | |
| timeTrackingConfiguration | Struct | N/D | |
| Etichetta | values | Elenco | N/D |
| Me stesso | espansione | Stringa | "=" |
| self | Stringa | N/A | |
| accountId | Stringa | N/A | |
| accountType | Stringa | N/A | |
| emailAddress | Stringa | N/A | |
| avatarUrls | Stringa | N/A | |
| displayName | Stringa | N/A | |
| attiva | Booleano | N/D | |
| timezone | Stringa | N/A | |
| locale | Stringa | N/A | |
| gruppi | Struct | N/D | |
| applicationRoles | Struct | N/D | |
| Autorizzazione | id | Stringa | N/A |
| key | Stringa | N/A | |
| nome | Stringa | N/A | |
| tipo | Stringa | N/A | |
| description | Stringa | N/A | |
| havePermission | Booleano | N/D | |
| deprecatedKey | Booleano | N/D | |
| Progetto | orderBy | Stringa | "=" |
| keys | Elenco | "=" | |
| query | Stringa | "=" | |
| typeKey | Stringa | "=" | |
| categoryId | Numero intero | "=" | |
| action | Stringa | "=" | |
| espansione | Stringa | "=" | |
| status | Elenco | "=" | |
| self | Stringa | N/A | |
| id | Numero intero | "=" | |
| key | Stringa | N/A | |
| description | Stringa | N/A | |
| lead | Struct | N/D | |
| componenti | Elenco | N/D | |
| issueTypes | Elenco | N/D | |
| url | Stringa | N/A | |
| Stringa | N/A | ||
| assigneeType | Stringa | N/A | |
| versioni | Elenco | N/D | |
| nome | Stringa | N/A | |
| roles | Struct | N/D | |
| avatarUrls | Struct | N/D | |
| projectCategory | Struct | N/D | |
| projectTypeKey | Stringa | N/A | |
| simplified | Booleano | N/D | |
| stile | Stringa | N/A | |
| preferito | Booleano | N/D | |
| isPrivate | Booleano | N/D | |
| issueTypeHierarchy | Struct | N/D | |
| autorizzazioni | Struct | N/D | |
| properties | Elenco | "=" | |
| uuid | Stringa | N/A | |
| informazione dettagliata | Struct | N/D | |
| deleted (eliminato) | Booleano | N/D | |
| retentionTillDate | Stringa | N/A | |
| deletedDate | Stringa | N/A | |
| deletedBy | Struct | N/D | |
| archived | Booleano | N/D | |
| archivedDate | Stringa | N/A | |
| archivedBy | Struct | N/D | |
| landedPageInfo | Struct | N/D | |
| Categoria di progetto | self | Stringa | N/A |
| id | Stringa | N/A | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| Tipo di progetto | key | Stringa | N/A |
| formattedKey | Stringa | N/A | |
| description | Stringa | N/A | |
| descriptionI18nKey | Stringa | N/A | |
| icon | Stringa | N/A | |
| color | Stringa | N/A | |
| Informazioni sul server | baseUrl | Stringa | N/A |
| version | Stringa | N/A | |
| versionNumbers | Elenco | N/D | |
| deploymentType | Stringa | N/A | |
| buildNumber | Numero intero | N/D | |
| buildDate | DateTime | N/D | |
| serverTime | DateTime | N/D | |
| scmInfo | Stringa | N/A | |
| serverTitle | Stringa | N/A | |
| healthChecks | Elenco | N/D | |
| Utenti | self | Stringa | N/A |
| accountId | Stringa | N/A | |
| accountType | Stringa | N/A | |
| emailAddress | Stringa | N/A | |
| avatarUrls | Struct | N/D | |
| displayName | Stringa | N/A | |
| attiva | Booleano | N/D | |
| timezone | Stringa | N/A | |
| locale | Stringa | N/A | |
| gruppi | Struct | N/D | |
| applicationRoles | Struct | N/D | |
| espansione | Stringa | N/A | |
| Flusso di lavoro | workflowName | Stringa | "=" |
| espansione | Stringa | "=" | |
| queryString | Stringa | "=" | |
| orderBy | Stringa | "=" | |
| isActive | Booleano | "=" | |
| id | Struct | N/D | |
| description | Stringa | N/A | |
| transizioni | Elenco | N/D | |
| stati | Elenco | N/D | |
| isDefault | Booleano | N/D | |
| schemi | Elenco | N/D | |
| progetti | Elenco | N/D | |
| hasDraftWorkflow | Booleano | N/D | |
| operazioni | Struct | N/D | |
| creato | Stringa | N/A | |
| updated | Stringa | N/A | |
| Schema del flusso di lavoro | self | Stringa | N/A |
| id | Numero intero | N/D | |
| nome | Stringa | N/A | |
| description | Stringa | N/A | |
| defaultWorkflow | Stringa | N/A | |
| issueTypeMappings | Struct | N/D | |
| originalDefaultWorkflow | Stringa | N/A | |
| originalIssueTypeMappings | Struct | N/D | |
| bozza | Booleano | N/D | |
| lastModifiedUser | Struct | N/D | |
| lastModified | Stringa | N/A | |
| updateDraftIfNeeded | Booleano | N/D | |
| issueTypes | Struct | N/D | |
| Associazione di progetti dello schema del flusso di lavoro | projectId | Numero intero | "=" |
| projectIds | Elenco | N/D | |
| workflowScheme | Struct | N/D | |
| Stato del flusso di lavoro | self | Stringa | N/A |
| description | Stringa | N/A | |
| iconUrl | Stringa | N/A | |
| nome | Stringa | N/A | |
| id | Stringa | N/A | |
| StatusCategory | Struct | N/D | |
| Categoria di stato del flusso di lavoro | self | Stringa | N/A |
| id | Stringa | N/A | |
| key | Stringa | N/A | |
| colorName | Stringa | N/A | |
| nome | Stringa | N/A |
Query di partizionamento
Puoi fornire l'opzione Spark aggiuntiva NUM_PARTITIONS se desideri utilizzare la concorrenza in Spark. Con questo parametro, la query originale viene suddivisa in NUM_PARTITIONS query secondarie che possono essere eseguite contemporaneamente dalle attività Spark.
NUM_PARTITIONS: il numero di partizioni.
Esempio:
jiraCloud_read = glueContext.create_dynamic_frame.from_options( connection_type="JiraCloud", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "issue", "API_VERSION": "v2", "NUM_PARTITIONS": "10" }