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).
- Ensure your
$ATLASSIAN_USERNAME
and$ATLASSIAN_TOKEN
environment variables / command line arguments are set - Copy
config.example.yaml
toconfig.yaml
and edit as appropriate go build
./atlassian-automator
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
)
- A Jira Project called
- An Atlassian API token (see here)
- The following environment variables set:
ATLASSIAN_USERNAME
(your email address)ATLASSIAN_TOKEN
(the Atlassian token you created above)