Skip to the page
DataMosaic

Docs · Connecting to data

Jira

Let a workflow open, comment on, move and find issues in Jira Cloud or Jira Data Center.

A workflow that finds something opens an issue in your team's Jira, adds to it while the problem lasts, and moves it on once it is gone.

Jira is under Integrations, in the group Issue tracking. The integration holds the site and the token, and the Jira node in Workflows uses it. A workflow stores nothing about Jira itself.

#Setting it up

FieldJira CloudJira Data Center
Site addresshttps://your-company.atlassian.netThe address Jira opens at, with its path if it has one: https://jira.example.com/jira
EmailThe Atlassian account the token belongs toLeave blank
API tokenAn API token made on that account's Security pageA personal access token, made under your profile
Default projectOptional. The project key a new issue goes into when the node names none, such as ITThe same

The token acts as its account. A workflow sees the projects that account can see, and the issues it opens are reported by that account. A service account with access to the right projects is the usual choice.

Test connection signs in with what is in the form. It says who it signed in as and, when a default project is set, the project's name. Nothing is saved until you press Save. A token saved for one site address is not sent to another, so if you change the address, type the token again.

The token is encrypted with the same key file as a data source password, and comes back as bullets.

With more than one Jira integration in a workspace, the node uses the first switched-on one by name.

On Mosaic Cloud, a Jira site inside a private network cannot be reached. For Jira Data Center behind your firewall, run Mosaic on your own server.

#One issue for as long as a store is out

A check that runs every night should keep one issue open for each problem, not open a new one every night. Two workflows do it.

While something differs:

  1. When a check finishes, with Start it set to When it finds differences or a rule fails, Hand on set to One item for each row, and Rows set to That differ.
  2. Jira, Open an issue. Write the Summary from the row, such as Store {{ $json.store }} is out between the tills and the ERP, where store is your check's key column, and add the label mosaic. Leave If one with this summary is still open on Comment on it instead.

The first night opens the issue. Each night after that adds a comment to it, for as long as it is open.

Once everything agrees:

  1. When a check finishes, with Start it set to When everything agrees.
  2. Jira, Find issues, with the JQL project = IT AND labels = mosaic AND statusCategory != Done.
  3. Jira, Move an issue, to Done. Issue is {{ $json.issueKey }} to start with, which is what Find issues hands on.

A store that goes out again after its issue is done gets a new issue. Open an issue only looks among issues that are not done yet.