Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.
/ atlassian-automator Public archive

Service designed to create tickets in Jira based on the lastUpdated status of pages in Confluence.

Notifications You must be signed in to change notification settings

mintel/atlassian-automator

Repository files navigation

Atlassian Automator

The Atlassian Automator checks last updated dates/times for pages in Confluence and raises JIRA tickets when they are older than a date set by the user. This may be extended to other use-cases in future (hence the generic name).

$ ./atlassian-automator -h
Usage: atlassian-automator --atlassian-token=STRING --atlassian-username=STRING

Flags:
  -h, --help                         Show context-sensitive help.
      --atlassian-token=STRING       Your Atlassian API token. Either the environment variable or the flag MUST be set
                                     ($ATLASSIAN_TOKEN).
      --atlassian-username=STRING    Your Atlassian user name. Either the environment variable or the flag MUST be set
                                     ($ATLASSIAN_USERNAME).
      --config="config.yaml"         Path to atlassian-automator config file ($CONFIG_FILE).
      --listen-address=":8000"       Address on which HTTP server will listen (for healthchecks and metrics)
                                     ($LISTEN_ADDRESS).

Configuration

  1. Ensure your $ATLASSIAN_USERNAME and $ATLASSIAN_TOKEN environment variables / command line arguments are set
  2. Copy config.example.yaml to config.yaml and edit as appropriate
  3. go build
  4. ./atlassian-automator

Development

To develop and test this you'll need the following:

  • A Jira Cloud development account (sign up here) with:
    • A Jira Project called Atlassian Automator (AA)
    • A Confluence Space called Atlassian Automator (AA)
  • An Atlassian API token (see here)
  • The following environment variables set:
    • ATLASSIAN_USERNAME (your email address)
    • ATLASSIAN_TOKEN (the Atlassian token you created above)

About

Service designed to create tickets in Jira based on the lastUpdated status of pages in Confluence.

Resources

Stars

Watchers

Forks

Packages

No packages published