Skip to main content

Scenarios

To bring Jira issues into Abacus, start with CreateConnections, which names your Jira site and how to sign in to it. Add CreateFieldMaps to choose which Jira field goes to which Abacus Attribute, then call UpdateAbacus, which reads every issue and its history and writes them to Abacus as Object Events.

Connections​

Create Connections​

Create a Connection with only its required values.

Request
mutation {
CreateConnections {
Id(Is: {In: "acme"})
Label(Is: {In: "Acme Jira"})
Url(Is: {In: "https://example.atlassian.net"})
Email(Is: {In: "reader@example.com"})
ApiToken(Is: {In: "your-api-token"})
}
}
Response
{
"data": {
"CreateConnections": [
{
"Id": "acme",
"Label": "Acme Jira",
"Url": "https:\/\/example.atlassian.net",
"Email": "reader@example.com",
"ApiToken": true
}
]
}
}

Select Connections​

Select acme's Label, Url and Email.

Request
query {
SelectConnections {
Id(Is: {In: "acme"})
Label
Url
Email
}
}
Response
{
"data": {
"SelectConnections": [
{
"Id": "acme",
"Label": "Acme Jira",
"Url": "https:\/\/example.atlassian.net",
"Email": "reader@example.com"
}
]
}
}

Update Connections​

Update the Label of one Connection by its Id.

Request
mutation {
UpdateConnections {
Id
Label(Is: {In: "Acme Jira Cloud"})
Url
Where {
... on SelectConnection {
Id(Is: {In: "acme"})
}
}
}
}
Response
{
"data": {
"UpdateConnections": [
{
"Id": "acme",
"Label": "Acme Jira Cloud",
"Url": "https:\/\/example.atlassian.net",
"Where": [
{
"Id": "acme"
}
]
}
]
}
}

Delete Connections​

Delete one Connection by its Id.

Request
mutation {
DeleteConnections {
Where {
... on SelectConnection {
Id(Is: {In: "acme"})
}
}
}
}
Response
{
"data": {
"DeleteConnections": [
{
"Where": [
{
"Id": "acme"
}
]
}
]
}
}

Field Maps​

Create Field Maps​

Create a Field Map for one Connection that reads each Issue's created date.

Request
mutation {
CreateFieldMaps {
Id(Is: {In: "created"})
Label(Is: {In: "Created"})
FieldPath(Is: {In: "fields.created"})
Connections {
... on SelectConnection {
Id(Is: {In: "acme"})
}
}
}
}
Response
{
"data": {
"CreateFieldMaps": [
{
"Id": "created",
"Label": "Created",
"FieldPath": "fields.created",
"Connections": [
{
"Id": "acme"
}
]
}
]
}
}

Select Field Maps​

Select one Field Map by its Id, with its Label and FieldPath.

Request
query {
SelectFieldMaps {
Id(Is: {In: "created"})
Label
FieldPath
}
}
Response
{
"data": {
"SelectFieldMaps": [
{
"Id": "created",
"Label": "Created",
"FieldPath": "fields.created"
}
]
}
}

Update Field Maps​

Update the Label of one Field Map by its Id.

Request
mutation {
UpdateFieldMaps {
Id
Label(Is: {In: "Created On"})
FieldPath
Where {
... on SelectFieldMap {
Id(Is: {In: "created"})
}
}
}
}
Response
{
"data": {
"UpdateFieldMaps": [
{
"Id": "created",
"Label": "Created On",
"FieldPath": "fields.created",
"Where": [
{
"Id": "created"
}
]
}
]
}
}

Delete Field Maps​

Delete one Field Map by its Id.

Request
mutation {
DeleteFieldMaps {
Where {
... on SelectFieldMap {
Id(Is: {In: "created"})
}
}
}
}
Response
{
"data": {
"DeleteFieldMaps": [
{
"Where": [
{
"Id": "created"
}
]
}
]
}
}

Update Abacus​

Update Abacus from one Connection.

Request
mutation {
UpdateAbacus {
Pages
Issues
ObjectEvents
Connections {
... on SelectConnection {
Id(Is: {In: "acme-issues"})
}
}
}
}
Response
{
"data": {
"UpdateAbacus": {
"Pages": 1000,
"Issues": 100000,
"ObjectEvents": 1264406,
"Connections": []
}
}
}